This is not a script issue per se and for that matter is not limited to either V1 or V2 of the language but its something I would like to ask and see if others have had any luck with it
This is something that AutoIt can apparently do,
Send ControlClick to Hidden Window?.
My tests with AHK tells me its not possible
Code: Select all
controlClick, 100,10, ahk_exe foobar2000.exe,,,, NA
The above clicks on top left of foobars window (Win32 UI), without activating the window. The following is the same but meant to click on Foobar while it is hidden but upon showing the window, it is evident the button was not clicked:
Code: Select all
DetectHiddenWindows, on
WinHide, ahk_exe foobar2000.exe
sleep, 500
controlClick, 100,10, ahk_exe foobar2000.exe,,,, NA
sleep, 500
winShow, ahk_exe foobar2000.exe
Its my understanding that both AutoIt and AutoHotkey are using the same underlying windows facilities, so I dont understand discrepancy.
Can anyone confirm if they have ever managed to get
controlClick to work on hidden windows?