mIRC Homepage
Posted By: ATMA on keydown - 05/12/04 07:53 PM
there any way to capture on keydown in lets say? a channel window?
Posted By: DaveC Re: on keydown - 05/12/04 09:31 PM
Only thing i know of is to be monitoring the $editbox for the key being pressed.

This of course is limited to keys that produce a charactre in the editbox.
Posted By: Zyzzyx26 Re: on keydown - 06/12/04 03:40 AM
I was about to post a new topic about this subject, but when I saw the thread, I decided to join :P

Is there anyway, without using .dlls, that I can capture the ON Keydown of the TAB key? It does produce a character - $chr(9) - but when you press it in the editbox, it changes tabs instead of printing the char.

Any help would be appreciated smile
Zyzzyx.
Posted By: Online Re: on keydown - 06/12/04 03:44 AM
You can press Ctrl-I to make a tab but it's not very useful, since tabs do not appear correctly in channel windows.
Posted By: Zyzzyx26 Re: on keydown - 06/12/04 11:45 AM
I was looking for something more related to mIRC's nick completation thing, rather then showing the $chr(9). I use PnP 4.22 but I'm trying to quit :P It's too heavy and it delays a lot mIRC's inicialization, and I only like a couple of PnP's features. One of them is this TAB thing: when there is nothing written in the editbox, if I press TAB, the script will do an /editbox command and show me the last person that messaged me -> /msg <nick>

I tried to reproduce the features I like, but this TAB thing is the only thing missing :P I was wondering if PnP uses a .dll for that, or if it's pure mIRC scripting.

Zyzzyx smile
Posted By: tidy_trax Re: on keydown - 06/12/04 11:49 AM
That would be a mIRC feature.

/help Tab

Quote:
Tab

If an editbox is empty and you press the Tab key, mIRC inserts a "/msg nickname" into the editbox of the window you are currently on, where nickname is the last person that sent you a message.

You can use Control+D to remove a nickname from the Tab Key nickname list of users who have recently messaged you.

Note: The editbox needs to be empty in order for the Tab key to work as described above since the Tab key also performs the functions below...

If you are in a channel window editbox and it contains some text, the Tab key performs nickname completion on the word the cursor is on, this allows you type in only the first character or two of a nickname on that channel and then press Tab and mIRC will expand it to the full nickname.

If you press the Tab key while the cursor is positioned over a %variable or $identifier, it is evaluated.

The Tab completion also works for a nickname in a query window, the nicknames in your notify list when in the status window, and for channel names in your favorites folder when in any window.

You can also use wildcard *? characters in nickname tab completion.
Posted By: Zyzzyx26 Re: on keydown - 06/12/04 12:28 PM
Ohhhhhhhh.... *duh*. I had no idea it was a mIRC feature! Thanks for the help laugh
Posted By: tidy_trax Re: on keydown - 06/12/04 12:36 PM
Np smile
I find a feature i've never seen before just about every time I look in the help file wink
© mIRC Discussion Forums