Help : how to make me script work in the background
Posted: 01 Mar 2024, 04:30
1-How can I make this script run only on a specific Nameof game.exe in the background while I work on another window with the same name
Nameof game.exe / no need in WinActivate -- i need in ]Hide win in background like this { DetectHiddenWindows, On
Send,, {RButton}, ahk_exe example.exe
Nameof game.exe / no need in WinActivate -- i need in ]Hide win in background like this { DetectHiddenWindows, On
Send,, {RButton}, ahk_exe example.exe
Code: Select all
#Persistent
SetTimer, PressTheKey, 200
Return
PressTheKey:
SoundBeep, 1500
WinGet, win, List, ahk_exe Nameof game.exe
Loop, %win% {
WinActivate, % "ahk_id " win%A_Index%
Send,{RButton}
sleep, 10
Send,{LButton}
sleep, 10
send {LCtrl down}
sleep, 10
Send,{f10}{f10}
sleep, 10
}
Return
#1::Pause
1::Pause