I made this .ahk to set dpi screen to 100, launch Sinden software and launch the loader in silent mode with no cursor and no crosshair.
Usually, when press esc, all the programs close and dpi is reverted to 200 (my normal value) but this time the Sinden software doesn't close and dpi remain at 100.
I need that someone more skilled than me, checks what's wrong in my script, thanks..
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
Run, SetDPI.exe 100
Sleep, 1000
Run, D:\Gungames\Gunman\SindenLightgun\Lightgun.exe
Sleep, 2000
Run, D:\Gungames\Gunman\Gunman_Launcher.exe -c -x -s
~Esc::
Process,Close,Lightgun.exe
Process,Close,Gunman_Launcher.exe
Run, taskkill /im "Lightgun.exe" /F
Run, taskkill /im "Gunman_Launcher.exe -c -x -s" /F
Run, SetDPI.exe 200
ExitApp
return