Therefore, it is not necessary to do this on the "ON KEYDOWN" event handler, so as not to break the backward compatibility of already created scripts, but it would be better to create a new "ON EDITBOX" event handler that will track for any keystrokes on the keyboard in the editbox field on channels, query (private) and status windows.

    Syntax: ON <level>:EDITBOX:<#channel,query,status,*>:<keycode,keycodeN,*>:{ <commands> }

    Used identifiers: $keyval, $keychar, $keyrpt. To catch the moment when the key button is released, will probably need to add the identifier $keyup.
    To define a window: $chan, $active, $query(), $scon(), $window().

Regarding the "halt" command, it would probably be appropriate to prohibit its use exclusively only in this event handling, in order to avoid accidents.


It's strange that we still don't have such an important event handler. I hope you find the time and still implement it. Thank.

[Linked Image from i.ibb.co]


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples