Quote
The correct behavior is to get 7 for $keyval and $null for $keychar.
The 7 should be sent as 55.

Others issue:

In a picture window with no editbox, control + c triggers on keydown with $keychar = $chr(22) and $keyval = 22 (6.35 used to return $chr(22) and 86 for $keyval, the uppercase 'v', there have been report about $keyval changing that way).
Control + v triggers with $keychar = $chr(3) and $keyval = 3.
I believe this is wrong. Pressing control always triggers with $keyval = 17, which is correctly VK_CONTROL, but once you add the 'c' or the 'v', the value are not correct.
22 is VK_IME_ON and 3 is VK_CANCEL, which doesn't seem to be correct?

The correct behavior for on keydown is probably to report the 'c' and 'v' keypress after reporting VK_CONTROL for the control key.
According to some google search it would even be advised that to catch control + c or v, one should check only for the letter being pressed, and then use $mouse.key to look for control being held down.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel