Newbie here! Need help before I pull my hair out!
Posted: 10 Apr 2024, 10:48
I'm really new to using AHK and I'm trying to learn on my own as much as I can but this one has me stumped.
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:
PLEASE HELP
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