mIRC Home    About    Download    Register    News    Help

Print Thread
WM_CHAR #266893 29/02/20 04:03 AM
Joined: Jul 2006
Posts: 3,723
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,723
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: WM_CHAR [Re: Wims] #267180 14/04/20 05:34 PM
Joined: Jul 2006
Posts: 3,723
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,723
Thanks you very much for this.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: WM_CHAR [Re: Wims] #267181 14/04/20 07:38 PM
Joined: May 2018
Posts: 119
eahm Offline
Vogon poet
Offline
Vogon poet
Joined: May 2018
Posts: 119
You're replying to yourself son? grin

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


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: WM_CHAR [Re: eahm] #267183 14/04/20 08:47 PM
Joined: Feb 2011
Posts: 366
K
KindOne Offline
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 366
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.


irc.swiftirc.net #msl (mIRC Scripting Language)