I'm trying to make a script that will run until it detects a specific game exe running (gs2.exe), after it detects the game I want to send Alt + Enter to toggle to fullscreen. I googled and tried a few different things and I can't get it to work.
Here is what I have currently:
Code: Select all
SetTimer CheckProgram, 1000
return
CheckProgram:
If WinExist("ahk_exe gs2.exe")
{
Send "{Alt down}{Enter}{Alt up}"
}
return