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