ControlSend only works after WinActivate

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
elmo
Posts: 113
Joined: 09 Oct 2013, 09:08

ControlSend only works after WinActivate

12 Jun 2017, 15:14

Hello Forum,
Apologies as I am sure I am overlooking something obvious. I have searched the forum and must be looking for it the wrong way. Basically, I have ControlSend working nicely, but ONLY after making the target window active. I've reviewed the usual suspects and they seem to be in order:

Code: Select all

DetectHiddenWindows , On
SetTitleMatchMode , 1
SetTitleMatchMode , Slow
As noted, the ControlSend works when the window is active so that command syntax seems not to be the issue.
Is there a common cause for this or a message work around perhaps?
Thank you in advance for your help.
User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: ControlSend only works after WinActivate

12 Jun 2017, 23:37

ControlSend just doesn't work on all windows in all situations. It depends on what the software is doing with the input it receives. Some apps/windows don't respond unless they are the active window. I've seen others that won't accept it unless the mouse is hovering over the window. Some will not accept ControlSend in any situation.
elmo
Posts: 113
Joined: 09 Oct 2013, 09:08

Re: ControlSend only works after WinActivate

13 Jun 2017, 10:46

Thanks boiler; your response is reassuring in that i can just move along and stop worrying about it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AHK_user, Google [Bot] and 232 guests