#Persistent FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% open\save\ Run, ElonaCG.exe ;Sleep, 1000 ;start prompt, unnecessary ;Send, {Enter} ;Sleep, 2000 WinWait, ahk_exe ElonaCG.exe ;Wait for and focus window WinActivate WinSet, Style, -0x840000, ahk_exe ElonaCG.exe ;Set window to borderless WinSet, Style, -0x800000, ahk_exe ElonaCG.exe WinSet, Style, -0x400000, ahk_exe ElonaCG.exe WinSet, Style, -0x40000, ahk_exe ElonaCG.exe WinMove A,, 0, 0, 1920, 768 ;Move window into place at the top of the screen, resize to 1920x768 ;WinMove A,, 0, 282, 1920, 768 ;Alternatively move to the bottom of the screen, assuming a small icon taskbar SetTimer, backup, 1800000 backup: { FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC%\save\ return } #z:: FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% open\save\ Run, ElonaCG.exe WinWait, ahk_exe ElonaCG.exe ;Wait for and focus window WinActivate WinSet, Style, -0x840000, ahk_exe ElonaCG.exe ;Set window to borderless WinSet, Style, -0x800000, ahk_exe ElonaCG.exe WinSet, Style, -0x400000, ahk_exe ElonaCG.exe WinSet, Style, -0x40000, ahk_exe ElonaCG.exe WinMove A,, 0, 0, 1920, 768 ;Move window into place at the top of the screen, resize to 1920x768 ;WinMove A,, 0, 282, 1920, 768 ;Alternatively move to the bottom of the screen, assuming a small icon taskbar SetTimer, backup, 1800000 return #Esc:: FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% esc\save\ return