GCP Key Codes
From GameCommanderPro
Certain GCP commands send keys to game windows.
Contents |
Basic keys
For example:
- Hit A will send "a" (note lower case, even though we entered and upper case character).
- Hit +A will send "A" (upper case, the plus sign means shift)
- Hit ^A will send control "a"
- Hit %A will send alt "a"
- Hit +^%A will send control-alt "A"
- Hit abcdef will send abcdef
Special keys
To send special codes (such as function keys) you enclose the "key name" in curly braces { and } for example:
- Hit {F1} sends function key 1
- Hit {End} sends the end key
- Hit +{F2} shift, alt and control work with these
- Hit +^{ABCDEF} is a way to send a group of keys with modifiers
- Hit {F1010} sends function key 10 repeated 10 times
- note the number must start from position 4 onwards - i.e. the code expects a 2 character key code
- {ABC5} would work (it would repeat "abc" 5 times
- {A5} would not - it would send "a" then "5"
GCP Special key codes
- {LBUTTON}
- {RBUTTON}
- {BREAK} *{CANCEL}
- {MBUTTON}
- {BACKSPACE} *{BS} *{BKSP}
- {TAB}
- {CLEAR}
- {ENTER} *{~} *{RETURN}
- {SHIFT}
- {CONTROL}
- {MENU} *{ALT}
- {PAUSE}
- {CAPSLOCK}
- {ESCAPE} *{ESC}
- {SPACE}
- {PGUP}
- {PGDN}
- {END}
- {HOME}
- {LEFT}
- {UP}
- {RIGHT}
- {DOWN}
- {SELECT}
- {PRTSC}
- {EXECUTE}
- {SNAPSHOT}
- {INSERT} *{INS}
- {DELETE} *{DEL}
- {HELP}
- {NUMLOCK}
- {SCROLLLOCK}
- {NUMPAD0}
- {NUMPAD1}
- {NUMPAD2}
- {NUMPAD3}
- {NUMPAD4}
- {NUMPAD5}
- {NUMPAD6}
- {NUMPAD7}
- {NUMPAD8}
- {NUMPAD9}
- {MULTIPLY}
- {ADD}
- {SEPARATOR}
- {SUBTRACT}
- {DECIMAL}
- {DIVIDE}
- {F1}
- {F2}
- {F3}
- {F4}
- {F5}
- {F6}
- {F7}
- {F8}
- {F9}
- {F10}
- {F11}
- {F12}
- {F13}
- {F14}
- {F15}
- {F16}
Key Binding
Basically the same codes are used for key binding.
The number pad keys are the only difference.
- Numpad0 is bound as NP0
- Numpad1 is bound as NP1
(etc
