Sendkeys » History » Version 9
Per Amundsen, 02/16/2023 03:13 PM
1 | 1 | Per Amundsen | _Added in 3.3_ |
---|---|---|---|
2 | |||
3 | 6 | Per Amundsen | */sendkeys [-pw] <keys|text>* |
4 | 1 | Per Amundsen | |
5 | 8 | Paul Janson | Send keys or plain text to the active window. (In a script, you can use $appactive to ensure the keys are sent to this AdiIRC instead of another App.) |
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 | 9 | Per Amundsen | table(ktable). |
12 | |*Switch*|*Description*| |
||
13 | | -p | Send plain text instead of keys. | |
||
14 | | -w | Wait for the keys to be processed. (does not work with -p) | |
||
15 | 1 | Per Amundsen | |
16 | 9 | Per Amundsen | *Parameters* |
17 | |||
18 | table(ktable). |
||
19 | |*Parameter*|*Description*| |
||
20 | | <keys<notextile>|</notextile>text> | Key combination or plain text to send. | |
||
21 | 1 | Per Amundsen | |
22 | *Example* |
||
23 | |||
24 | <pre> |
||
25 | ; Send CTRL + t keys to the active window. |
||
26 | /sendkeys ^t |
||
27 | |||
28 | 5 | Per Amundsen | ; Send emoji to the active window. |
29 | //sendkeys -p $chr(55357) $+ $chr(56832) |
||
30 | |||
31 | ; Toggle caps lock. |
||
32 | 1 | Per Amundsen | /sendkeys {CAPSLOCK} |
33 | 8 | Paul Janson | |
34 | ; open the Ctrl+K colors dialog (note that it's important to use lowercase k) |
||
35 | /sendkeys ^k |
||
36 | ; open the Ctrl+Shift+K colors dialog |
||
37 | /sendkeys ^K |
||
38 | or |
||
39 | /sendkeys ^+k |
||
40 | |||
41 | ; open the options dialog. Note that upper-case 'O' doesn't work because that makes sendkeys use ctrl+shift+O instead of Ctrl+O |
||
42 | /sendkeys %o |
||
43 | ; note that in a script this will try to send the contents of the %o variable, so in a script use $+(%,o) or % $+ o |
||
44 | 1 | Per Amundsen | </pre> |