mIRC Home    About    Download    Register    News    Help

Print Thread
#266893 29/02/20 04:03 AM
Joined: Jul 2006
Posts: 4,145
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
mIRC merges the windows' messages WM_KEYDOWN and WM_SYSKEYDOWN together to trigger the on keydown event.

However there is a lack of support for building your own editbox in picture windows, mainly (if not only).

For example with a french keyboard conf, the key '^' is a dead key. Pressing it once does nothing, it's used in combination with a letter, to accentuate it.

After this bug get fixed, $keyval should report 221 (VK_OEM_6) for the first keypress (with no $keychar), and then the value of the new key pressed (94 if you press ^ twice).

One cannot check for that case as anyone can create any keyboard with any layout+driver and get this same situation for a different purpose, google suggest that it's not possible to handle, that one has to use WM_CHAR.

While I would prefer to keep one event, it's not possible to change on keydown now.

I would like to see mIRC trigger a new on keychar event to cater for this, which would trigger for WM_CHAR message, to get only the character resulting from key presses.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #267180 14/04/20 05:34 PM
Joined: Jul 2006
Posts: 4,145
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Thanks you very much for this.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #267181 14/04/20 07:38 PM
Joined: May 2018
Posts: 221
Fjord artisan
Offline
Fjord artisan
Joined: May 2018
Posts: 221
You're replying to yourself son? grin

eahm #267182 14/04/20 08:09 PM
Joined: Jul 2006
Posts: 4,145
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
I would have replied to you if you had such a great idea cool cool


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
eahm #267183 14/04/20 08:47 PM
Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 448
Replying about this, in the latest beta:

Quote

16.Added on CHAR event that returns translated keyboard presses. Uses
the same format as on KEYDOWN/KEYUP.


Link Copied to Clipboard