Project

General

Profile

Sendkeys » History » Version 8

Paul Janson, 11/12/2020 01:11 AM

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
-p - Send plain text instead of keys.
12 7 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 1 Per Amundsen
/sendkeys {CAPSLOCK}
27 8 Paul Janson
28
; open the Ctrl+K colors dialog (note that it's important to use lowercase k)
29
/sendkeys ^k
30
; open the Ctrl+Shift+K colors dialog
31
/sendkeys ^K
32
or
33
/sendkeys ^+k
34
35
; open the options dialog. Note that upper-case 'O' doesn't work because that makes sendkeys use ctrl+shift+O instead of Ctrl+O
36
/sendkeys %o
37
; note that in a script this will try to send the contents of the %o variable, so in a script use $+(%,o) or % $+ o
38 1 Per Amundsen
</pre>