Project

General

Profile

$keyval » History » Revision 2

Revision 1 (Per Amundsen, 08/11/2015 05:15 AM) → Revision 2/3 (Per Amundsen, 12/14/2016 11:49 PM)

_Added in 1.9.1_ 

 *$keyval* 

 Returns the key code of the key being pressed. 

 _Only filled during [[on KEYDOWN]] and [[on KEYUP]] [[Scripting_Events|events]]._ 

 *Example* 

 <pre> 
 on *:KEYDOWN:*:*:echo -ag $keyval was pressed, the character was $keychar, key repeat was $iif($keyrpt, on, off) 
 </pre>