APP.SetShortcutKey |
status = APP.SetShortcutKey( nCtrl AS INTEGER, cKey AS INTEGER, strScriptFile AS STRING ) AS INTEGER
Set a shortcutkey to run a scriptfile. The nCtrl is a mask where each of the following bits correspond to one of the control keys:
CTRL_VK_SHIFT = 0x00000001 CTRL_VK_CONTROL = 0x00000002 CTRL_VK_ALT = 0x00000004
You can combine any of these as needed by adding them together. The cKey parameter is a single keyboard key code. You can use ASC( "H" ) if using one of the character keys. The last parameters is the script file to run.
For a list of key codes see Virtual-Keys
|