SendKeys to an application in the background

Announcements, questions
Post Reply
lstratton
Posts: 1
Joined: 24 Mar 2016, 07:06

SendKeys to an application in the background

Post by lstratton » 24 Mar 2016, 07:10

Hi!

I'm trying to accomplish a simple task - always send a certain keyboard (I have two) to a specific window or application. I'm close but I can't figure out the syntax to SendKeys to a certain spot.

In AutoHotKeys this works:

Code: Select all

#SingleInstance force
SetTitleMatchMode, 2

#IfWinExist AppNameHere
y::
ControlSend, , y
return
#IfWinExist
If it's not possible, does anyone know how to route one keyboard from LUA Macros to a AHK function?

Post Reply