Can't make ControlSend to send keys to inactive window
Posted: 15 Jun 2017, 14:48
ControlSend doesn't send commands to inactive window. So my goal is to open for example three game windows and when I press certain key, it is sent to all game windows. I heard that not all programs respond to ControlSend, but I tried using same code with notepad and it didn't work either. It sends the code to active window though.
Here is my code:
Also is it possible to send mouseclicks on the same coordinate to all game windows if I stack windows on top of each other?
Here is my code:
Code: Select all
SetTitleMatchMode, 2
Space::
KeyWait, Space, D
IfWinActive ahk_class SunAwtFrame
{
ControlSend,, {Space}, ahk_class SunAwtFrame
}
Return