Guest User

Rise of Agon GUI Backup App

a guest
Jun 26th, 2019
295
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. Gui, 1:Add, Button, x22 yp+30 w90 h25 , RoA GUI Backup
  5. Gui, 1:Add, Button, x122 yp w90 h25 , RoA GUI Restore
  6. GUI, 1:ADD, TEXT, X22 YP+30, Backup file path = c:\Rise of Agon GUI Backup
  7.  
  8. Gui, Font, s12,
  9. GUI, 1:ADD, TEXT, Xm20 Yp+40 w450 vRoABUTime, %RoABUTime%
  10. ;GUI, 1:ADD, TEXT, X300 YP w250 vRoABUNoFile, No Backup Detected.
  11.  
  12. Gui, Font,,
  13. GUI, 1:ADD, text, xm30 Yp+40, Backup BEFORE logging into PTS. Restore after logging out/ exiting of PTS.
  14.  
  15.  
  16. Gui Show, w490 h200, Rise of Agon Backup GUI app
  17.  
  18. return
  19. ;----------------------------------------------------backup and restore RoA GUI---------------------------start
  20.  
  21. ButtonRoAGUIRestore:
  22. SoundBeep
  23. ;f10::
  24. ;IfWinExist, Rise of Agon
  25. ; GuiControl,, RoABUTime, Darkfall RoA is running, can not restore GUI files.
  26. ;else
  27. ;IfNotExist, C:\Rise of Agon GUI Backup\Character; GuiControl,, RoABUTime, No Backup found.
  28. ;else
  29. {
  30. FileCopyDir, C:\Rise of Agon GUI Backup\Character, %A_AppData%\DarkfallRoA\Character, 1
  31. sleep, 250
  32. formattime, RoABUTime, %A_Now%,
  33. GuiControl,, RoABUTime, Backup Restored @ %RoABUTime%.
  34. }
  35. SoundBeep, 120, 500
  36. return
  37.  
  38. ButtonRoAGUIBackup:
  39. SoundBeep
  40. ;f8::
  41. FileCopyDir, %A_AppData%\DarkfallRoA\, c:\Rise of Agon GUI Backup, 1
  42. sleep, 250
  43.  
  44. FileSetTime, , C:\Rise of Agon GUI Backup\Character
  45. FileGetTime, RoABUTime, C:\Rise of Agon GUI Backup, a
  46. sleep, 250
  47. formattime, RoABUTime, %A_Now%,
  48. GuiControl,, RoABUTime, Backup Saved @ %RoABUTime%
  49. SoundBeep, 120, 500
  50. return
  51.  
  52. ;----------------------------------------------------backup and restore RoA GUI---------------------------end
  53.  
  54. GuiClose:
  55. gosub, OnExit
  56. return
  57.  
  58. OnExit:
  59. gui, destroy
  60. Exitapp
  61. return
RAW Paste Data