I want to send a keystroke to chrome, but it only works while the window is active. I'd like this to work even when the window is in the background.
;begin
Pause
Loop {
ControlSend,,{escape}, Omegle - Google Chrome
Sleep 2650
}
F9::Pause
;end
I want to send a keystroke to chrome, but it only works while the window is active. I'd like this to work even when the window is in the background.
;begin
Pause
Loop {
ControlSend,,{escape}, Omegle - Google Chrome
Sleep 2650
}
F9::Pause
;end
To operate upon a control's HWND (window handle), leave the Control parameter blank and specify ahk_id %ControlHwnd% for the WinTitle parameter (this also works on hidden controls even when DetectHiddenWindows is Off). The HWND of a control is typically retrieved via ControlGet Hwnd, MouseGetPos, or DllCall.