Thursday, April 4, 2024

Some autohotkey commands

 Some commands that I fought with but finally was able to make work.

Send key "F2" to a window that might not be active without stealing focus from the active window


In this example, i wanted to first get the actual windows title associated to the executable.

processName := "vMix64.exe"

if (WinExist("ahk_exe " . processName)){

WinGetTitle, title, ahk_exe %processName%

ControlSend,, {F2},%title%


No comments:

Post a Comment