Welcome, Guest. Please login or register.

Login with username, password and session length

Advanced search

10 840 Posts in 6 215 Topics- by 1 216 Members - Latest Member: santini862

3 June 2020, 05:09
  Show Posts
Pages: [1]
1  General / General forum/web site questions / captcha image on forum registration is not loading? on: 10 August 2019, 23:50

someone from irc asked if the forum admin can check this, as they cant register without the captcha image
2  KVIrc discussion / KVIrc scripting / Re: OnChannelMessage-Event on: 6 February 2019, 09:09

for information regarding echoing text to specific windows, look at the kvirc manual for command: rebind, echo, $window
you might also need to look at IRC context values you want your script to send to specific IRC networks.
3  KVIrc discussion / KVIrc scripting / Re: Get random element of an array on: 6 February 2019, 09:00
spam bots are so annoying

another tip, you can use a shorthand way to get the number of indices in an array in KVS using: %array[]# instead of using $length(%array)

as said above though, you still need to subtract one from the result using rand.
4  KVIrc discussion / KVIrc scripting / create seperate thread in KVS? on: 11 November 2017, 09:26
is there a way to execute some KVS code as a seperate process to the main kvirc process? i want to use a recursive function, but it is making kvirc "not responding" until it is finished and it looks like the program is frozen or crashing when it really isn't.
5  KVIrc discussion / KVIrc scripting / Re: Notify Window Script on: 16 April 2017, 05:49
Some code tips.
To create a windows inside kvirc (checks if window exists, creates if it doesn't):

%windowName = "Hilights"
if ($window.exists($window(%windowName)) == 0)
   # create hilight window
   $window.open("mq", %windowName,0,305)

note that you can change the parameters of $window.open (ie: "mq" for the window type and the numbers at the end for icons etc. see kvirc doc for function $window.open for details: http://www.kvirc.net/doc/fnc_window.open.html)

You can find values either exact strings, with wildcard characters * ? or as regex by using $str.grep function: http://www.kvirc.net/doc/fnc_str.grep.html in an Event Handler in onChannelMessage (or onQueryMessage, or any other event you want to handle for hilighting)

Code example is something like:

# check a specific channel name by setting value of %chanName
if ($chan.name() == %chanName)
   # we are doing a wildcard str.grep() here. see str.grep documentation for details
   if ($str.grep(%stringToFind, $3, w))
      echo -w=$window(%windowName) whatever you want to echo to hilight window

This should get you on your way to outputting stuff to windows inside kvirc. If you want to handle and send messages from and to multiple networks at the same time its a little more than this, but this is good for the basics and for just catching incoming messages.
6  KVIrc discussion / KVIrc scripting / Re: KVIrc scripts repository on: 28 December 2016, 11:06
hi alex,

I dont know how to install anything from your repository. I was going to install the repo browser and use that but I can't figure it out? I tried gunzip, then rename the .tar to .kva but it doesn't seem to install. using a 4.9.2 nightly on windows.
7  KVIrc discussion / KVIrc scripting / Execute multiple commands in escape sequence or fmtlink on: 14 May 2016, 09:38
Anyone know if it is possible to execute multiple commands in escaped sequence or with fmtlink function? ie, without employing an alias.

I have tried: $cr![!action]command1; command2; command3;$cr\Link text$cr
but it doesn't seem to recognize the second $cr and thinks it is part of the command rule.

see also: http://www.kvirc.ru/docs/doc_escape_sequences.html
8  KVIrc discussion / KVIrc scripting / Re: KVIRC KVS GUI Scripting Guide/Tutorial/HOWTO on: 23 April 2016, 05:32
See also my additional document here: https://docs.google.com/document/d/1yX5AG-XW7aDpCLLxyIlfJS6mdjvjgs-rNtjNJjNwkiQ/edit?usp=sharing

which is a short look at most of the GUI classes available in KVS. Each class will have a description of what it does, an image of the class being used and a code example showing how to do it in code.

There are a few classes I couldn't work out properly (hbox, vbox, painter ones etc.) which are in the document but not in the table of contents. It is all listed alphabetically and if anyone can help me to understand how to use those classes properly I would appreciate it.

Just post a reply in here if you are able to help.
9  KVIrc discussion / KVIrc scripting / layout $setAlignment truncates label text? on: 28 March 2016, 15:53
Hi I am experimenting with the graphical object classes.

I have a simple example here: http://pastebin.com/qpU84Nha

The label widget has its text set to "KVIRC - GUI Widgets Example".

If I use %layout->$setAlignment(%labelTitle, "Right") or any other alignment value on the label it will truncate the text after "Widgets" so the label becomes "KVIRC - GUI Widgets".

I am using KVIRC 4.2.0. Is this a bug?
10  KVIrc discussion / KVIrc scripting / KVIRC KVS GUI Scripting Guide/Tutorial/HOWTO on: 27 March 2016, 09:20
Hi there,

I am currently writing a guide on how to write a GUI program using KVS. I have learnt from existing tutorials from KVIRC website and previous programming knowledge in C++ and PHP so my notes may be of interest to others with similar experience.

Currently the guide is in my Google Docs and you can view & comment on the document here: https://docs.google.com/document/d/1pS3fsWERgX19G9uVve3Ylbs6xID_7obS3eLCk4V4Tnc/edit?usp=docslist_api

KVS is the first language I have been able to successfully make a working GUI program so that either speaks in favour of its simplicity or in favour of my brain's simplicity.

Please note the document is a Work in Progress and is subject to change. Any questions or feedback can be put here or on the GDocs itself. It may contain notes to myself to remind me to do things etc. I am changing it over time to be a straight forward guide for beginners.
11  KVIrc discussion / KVIrc scripting / Re: OnChannelMessage syntax needed on: 26 March 2016, 13:11
can you post a link to where "indexOf" is in kvirc documentation, and I will have a look. I can't find "indexOf" through googling. (Search option for kvirc documentation would be nice!)
Pages: [1]
Theme orange-lt created by panic