Project

General

Profile

Sendkeys » History » Revision 6

Revision 5 (Per Amundsen, 12/24/2018 05:30 PM) → Revision 6/9 (Per Amundsen, 12/25/2018 01:18 AM)

_Added in 3.3_ 

 */sendkeys [-pw] [-p] <keys|text>* 

 Send keys or plain text to the active window. 

 _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._ 

 *Switches* 

 -p - Send plain text instead of keys. 
 -w - Wait for the keys to be processed. (Does not work with -p) 

 <keys|text> - Key combination or plain text to send. 

 *Example* 

 <pre> 
 ; Send CTRL + t keys to the active window. 
 /sendkeys ^t 

 ; Send emoji to the active window. 
 //sendkeys -p $chr(55357) $+ $chr(56832) 

 ; Toggle caps lock. 
 /sendkeys {CAPSLOCK} 
 </pre>