Table of contents
- 1. Description
- 2. Parameter(s)
- 3. Example(s)
- 3.1.1.1. Case 1: Send simple string
- 3.1.1.2. Case 2: Send uppercase string with SHIFT holding
- 3.1.1.3. Case 3: Send chars as a pure string
- 3.1.1.4. Case 4: Send chars with unicode number
- 3.1.1.5. Case5: Send a windows key combination
- 3.1.1.6. Case 6: Send chars with delay
- 3.1.1.7. Case 7: Send a key com bination with a delay while holding one key
- 4. See also
Void SendKeyCombination(Keysas String)
Description
This function simulates a user keyboard action. It allows a complex combination of keystroke which is not manageable with function SendKey().
Note: the syntaxe of keystokes sequences is different from that of SendKey().
The sequences in parenthesis is considered as key actions with the prefix sequence holding down (e.g. case 2)
Parameter(s)
Keys - a string giving the name of the keystroke to be simulated and sent to the desktop
Special keys :
BACKSPACE,DOWN,UP,LEFT,RIGHT,TAB,
NUMPAD0,NUMPAD1,NUMPAD2,NUMPAD3,
NUMPAD4,NUMPAD5,NUMPAD6,NUMPAD7,
NUMPAD8,NUMPAD9,NUMPAD*,NUMPAD+,NUMPAD-,
NUMPAD.,NUMPAD/,CONTROL,SHIFT,ALT,PGUP,PGDN,
BREAK,CLEAR,DELETE,END,ENTER,ESC,HELP,HOME,INSERT,
PRTSC,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,
F13,F14,F15,F16,F17,F18,F19,F20,F21,F22,F23,F24,
CANCEL,PAUSE,SELECT,EXECUTE,SNAPSHOT,SCROLL,
LWIN,RWIN,APPS,NUMLOCK,CAPSLOCK,SPACE,RMENU
Example(s)
Case 1: Send simple string
String to send: ip-label
Case 2: Send uppercase string with SHIFT holding
String to send: IP-LABEL
Case 3: Send chars as a pure string
String to send: {SHIFT}(ip-label)
Case 4: Send chars with unicode number
String to send: ip-labelÆ
Case5: Send a windows key combination
Combination: Windows + d // this is the shortcut to show desktop
or
Case 6: Send chars with delay
String to send: ip-label
add a delay of 1s between "-" and "l"
Case 7: Send a key com bination with a delay while holding one key
Combination: CTRL + TAB + TAB + TAB with a delay of 500 millisecond
See also
Comments