Using On key for undefined keys: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
New page: '''On_Key''' is a command used in Dataflex for trapping the action of keystrokes. All alphanumeric characters on the keyboard have actions define for them, but some keys such as /!@#$...e...
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
  Define_Symbol Key_FwdSlash      for |VI$802F
  Define_Symbol Key_FwdSlash      for |VI$802F
  On_Key Key_FwdSlash Send DoSomething
  On_Key Key_FwdSlash Send DoSomething
==External Links==
*[http://centricle.com/tools/ascii-hex/ Ascii to Hex Converter]
[[Category: Tutorials]]

Latest revision as of 00:47, 3 March 2008

On_Key is a command used in Dataflex for trapping the action of keystrokes. All alphanumeric characters on the keyboard have actions define for them, but some keys such as /!@#$...etc do not.

You can define these special characters yourself. Generally this is done by working out the Hex value of the keystroke, and then defining the key with a Define_Symbol command.

Examples

Capturing the "/" symbol:

Define_Symbol Key_FwdSlash       for |VI$802F
On_Key Key_FwdSlash Send DoSomething

External Links