send keys focus active window

Allows you to send key data to the focus active window.


Example

Running this code will send key data, a new line (ENTER key), to the current active window with the following properties:

  • Mode 1
  • Delay Before Send: 1000ms
  • Delay Type Write (Option Mode 2): 100ms
plugin command("Desktop Automation.dll", "send keys focus active window", "\{ENTER\}", "Mode 1", 1000, 100)

Running this code will send the key data that will save the file "Test Send Key.txt" to the "Desktop" with the following properties:

plugin command("Desktop Automation.dll", "send keys focus active window", "{$special folder("Desktop")}\\Test Send Key.txt", "Mode 1", 1000, 100)

Was this helpful?

Previous Article

screen unlock