Can't make ControlSend to send keys to inactive window

Get help with using AutoHotkey and its commands and hotkeys
thegame22
Posts: 1
Joined: 15 Jun 2017, 14:37

Can't make ControlSend to send keys to inactive window

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:

Code: [Select all] [Download] GeSHi © Codebox Plus

SetTitleMatchMode, 2

Space::
KeyWait, Space, D
IfWinActive ahk_class SunAwtFrame
{
ControlSend,, {Space}, ahk_class SunAwtFrame

}
Return


Also is it possible to send mouseclicks on the same coordinate to all game windows if I stack windows on top of each other?

Return to “Ask For Help”

Who is online

Users browsing this forum: Atari800XL, gregster, ShaneSkrt, Tocinos and 51 guests