Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. AutoSave() {
  2. global autoSaveSlot
  3.  
  4. SetTitleMatchMode, RegEx
  5. dolphinWinTitleRegex := "^Dolphin.*\| FPS:.*$"
  6.  
  7. if !(autoSaveSlot is number)
  8. autoSaveSlot := 4
  9.  
  10. if (autoSaveSlot == 4) {
  11. ControlSend, , {Shift down}{F4}{Shift up}, %dolphinWinTitleRegex%
  12. } else if (autoSaveSlot == 5) {
  13. ControlSend, , {Shift down}{F5}{Shift up}, %dolphinWinTitleRegex%
  14. } else if (autoSaveSlot == 6) {
  15. ControlSend, , {Shift down}{F6}{Shift up}, %dolphinWinTitleRegex%
  16. } else if (autoSaveSlot == 7) {
  17. ControlSend, , {Shift down}{F7}{Shift up}, %dolphinWinTitleRegex%
  18. } else if (autoSaveSlot == 8) {
  19. ControlSend, , {Shift down}{F8}{Shift up}, %dolphinWinTitleRegex%
  20. }
  21.  
  22. ; WinGetTitle, Title, %dolphinWinTitleRegex%
  23. ; MsgBox, The active window is "%Title%".
  24.  
  25. autoSaveSlot++
  26. if (autoSaveSlot > 8) {
  27. autoSaveSlot := 4
  28. }
  29. return
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement