Sendkeys » History » Version 6
Per Amundsen, 12/25/2018 01:18 AM
| 1 | 1 | Per Amundsen | _Added in 3.3_ |
|---|---|---|---|
| 2 | |||
| 3 | 6 | Per Amundsen | */sendkeys [-pw] <keys|text>* |
| 4 | 1 | Per Amundsen | |
| 5 | 5 | Per Amundsen | Send keys or plain text to the active window. |
| 6 | 1 | Per Amundsen | |
| 7 | 3 | Per Amundsen | _Check "here":https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send?view=netframework-4.7.2 to see the syntax for sending keys._ |
| 8 | 1 | Per Amundsen | |
| 9 | *Switches* |
||
| 10 | |||
| 11 | -p - Send plain text instead of keys. |
||
| 12 | 6 | Per Amundsen | -w - Wait for the keys to be processed. (Does not work with -p) |
| 13 | 1 | Per Amundsen | |
| 14 | 5 | Per Amundsen | <keys|text> - Key combination or plain text to send. |
| 15 | 1 | Per Amundsen | |
| 16 | *Example* |
||
| 17 | |||
| 18 | <pre> |
||
| 19 | ; Send CTRL + t keys to the active window. |
||
| 20 | /sendkeys ^t |
||
| 21 | |||
| 22 | 5 | Per Amundsen | ; Send emoji to the active window. |
| 23 | //sendkeys -p $chr(55357) $+ $chr(56832) |
||
| 24 | |||
| 25 | ; Toggle caps lock. |
||
| 26 | /sendkeys {CAPSLOCK} |
||
| 27 | 1 | Per Amundsen | </pre> |