Code: Select all
#Requires AutoHotkey v1.1.33
F3::ControlSend,, q, ahk_exe notepad.exe
Code: Select all
#Requires AutoHotkey v2.0
F3::ControlSend 'q',, 'ahk_exe notepad.exe'
Code: Select all
#Requires AutoHotkey v1.1.33
F3::ControlSend,, q, ahk_exe notepad.exe
Code: Select all
#Requires AutoHotkey v2.0
F3::ControlSend 'q',, 'ahk_exe notepad.exe'
v1 ControlSend documentation wrote: If this parameter is blank or omitted, the target window's topmost control will be used
v2 ControlSend documentation wrote: If this parameter is omitted, the keystrokes will be sent directly to the target window instead of one of its controls
Code: Select all
#Requires AutoHotkey v2.0
F3::ControlSend 'q', WinGetControls(winTitle := 'ahk_exe notepad.exe')[1], winTitle