Hey!
I'm trying to run a command to do the following:
Change resolution
Wait 3 seconds
Run example.exe
Then wait untill example.exe is closed and Change resolution back
Any help is appreciated!
So far I only have the change res and open example.exe, I don't know how to run the command to change back resolution after I close example.exe:
[Mod edit: Replaced spoiler tags around the code with [code][/code] tags. Please use them yourself when posting code!]
[Mod eaction: Moved topic from AHK v2 help since this is v1 code.]
I'm trying to run a command to do the following:
Change resolution
Wait 3 seconds
Run example.exe
Then wait untill example.exe is closed and Change resolution back
Any help is appreciated!

So far I only have the change res and open example.exe, I don't know how to run the command to change back resolution after I close example.exe:
CODE:
ChangeResolution(32,1920,1080,60)
sleep, 2000
Run, L:\Lightgun\Teknoparrot\TeknoParrotUi.exe
Return
ChangeResolution( cD, sW, sH, rR ) {
VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36)
DllCall( "EnumDisplaySettingsA", UInt,0, UInt,-1, UInt,&dM ),
NumPut(0x5c0000,dM,40)
NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120)
Return DllCall( "ChangeDisplaySettingsA", UInt,&dM, UInt,0 )
}
[Mod edit: Replaced spoiler tags around the code with [code][/code] tags. Please use them yourself when posting code!]
[Mod eaction: Moved topic from AHK v2 help since this is v1 code.]
Statistics: Posted by exodus_cl — Today, 18:50