Advertisement
Guest User

ElonaCG.ahk

a guest
Jun 24th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Persistent
  2.  
  3. FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% open\save\
  4. Run, ElonaCG.exe
  5. ;Sleep, 1000 ;start prompt, unnecessary
  6. ;Send, {Enter}
  7. ;Sleep, 2000
  8. WinWait, ahk_exe ElonaCG.exe ;Wait for and focus window
  9. WinActivate
  10. WinSet, Style, -0x840000, ahk_exe ElonaCG.exe ;Set window to borderless
  11. WinSet, Style, -0x800000, ahk_exe ElonaCG.exe
  12. WinSet, Style, -0x400000, ahk_exe ElonaCG.exe
  13. WinSet, Style, -0x40000, ahk_exe ElonaCG.exe
  14. WinMove A,, 0, 0, 1920, 768 ;Move window into place at the top of the screen, resize to 1920x768
  15. ;WinMove A,, 0, 282, 1920, 768 ;Alternatively move to the bottom of the screen, assuming a small icon taskbar
  16.  
  17. SetTimer, backup, 1800000
  18.  
  19. backup:
  20. {
  21.     FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC%\save\
  22.     return
  23. }
  24. #z::
  25.     FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% open\save\
  26.     Run, ElonaCG.exe
  27.     WinWait, ahk_exe ElonaCG.exe ;Wait for and focus window
  28.     WinActivate
  29.     WinSet, Style, -0x840000, ahk_exe ElonaCG.exe ;Set window to borderless
  30.     WinSet, Style, -0x800000, ahk_exe ElonaCG.exe
  31.     WinSet, Style, -0x400000, ahk_exe ElonaCG.exe
  32.     WinSet, Style, -0x40000, ahk_exe ElonaCG.exe
  33.     WinMove A,, 0, 0, 1920, 768 ;Move window into place at the top of the screen, resize to 1920x768
  34.     ;WinMove A,, 0, 282, 1920, 768 ;Alternatively move to the bottom of the screen, assuming a small icon taskbar
  35.    
  36.     SetTimer, backup, 1800000
  37. return
  38.  
  39. #Esc::
  40.     FileCopyDir, %A_WorkingDir%\save\, %A_WorkingDir%\backups\%A_NowUTC% esc\save\
  41. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement