Can't make ControlSend to send keys to inactive window

Get help with using AutoHotkey and its commands and hotkeys
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

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


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: Flipeador, Google [Bot], Reast, RosemaryWilkins, superfalse and 36 guests