Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, 1:Add, Button, x22 yp+30 w90 h25 , RoA GUI Backup
- Gui, 1:Add, Button, x122 yp w90 h25 , RoA GUI Restore
- GUI, 1:ADD, TEXT, X22 YP+30, Backup file path = c:\Rise of Agon GUI Backup
- Gui, Font, s12,
- GUI, 1:ADD, TEXT, Xm20 Yp+40 w450 vRoABUTime, %RoABUTime%
- ;GUI, 1:ADD, TEXT, X300 YP w250 vRoABUNoFile, No Backup Detected.
- Gui, Font,,
- GUI, 1:ADD, text, xm30 Yp+40, Backup BEFORE logging into PTS. Restore after logging out/ exiting of PTS.
- Gui Show, w490 h200, Rise of Agon Backup GUI app
- return
- ;----------------------------------------------------backup and restore RoA GUI---------------------------start
- ButtonRoAGUIRestore:
- SoundBeep
- ;f10::
- ;IfWinExist, Rise of Agon
- ; GuiControl,, RoABUTime, Darkfall RoA is running, can not restore GUI files.
- ;else
- ;IfNotExist, C:\Rise of Agon GUI Backup\Character; GuiControl,, RoABUTime, No Backup found.
- ;else
- {
- FileCopyDir, C:\Rise of Agon GUI Backup\Character, %A_AppData%\DarkfallRoA\Character, 1
- sleep, 250
- formattime, RoABUTime, %A_Now%,
- GuiControl,, RoABUTime, Backup Restored @ %RoABUTime%.
- }
- SoundBeep, 120, 500
- return
- ButtonRoAGUIBackup:
- SoundBeep
- ;f8::
- FileCopyDir, %A_AppData%\DarkfallRoA\, c:\Rise of Agon GUI Backup, 1
- sleep, 250
- FileSetTime, , C:\Rise of Agon GUI Backup\Character
- FileGetTime, RoABUTime, C:\Rise of Agon GUI Backup, a
- sleep, 250
- formattime, RoABUTime, %A_Now%,
- GuiControl,, RoABUTime, Backup Saved @ %RoABUTime%
- SoundBeep, 120, 500
- return
- ;----------------------------------------------------backup and restore RoA GUI---------------------------end
- GuiClose:
- gosub, OnExit
- return
- OnExit:
- gui, destroy
- Exitapp
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement