Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AutoSave() {
- global autoSaveSlot
- SetTitleMatchMode, RegEx
- dolphinWinTitleRegex := "^Dolphin.*\| FPS:.*$"
- if !(autoSaveSlot is number)
- autoSaveSlot := 4
- if (autoSaveSlot == 4) {
- ControlSend, , {Shift down}{F4}{Shift up}, %dolphinWinTitleRegex%
- } else if (autoSaveSlot == 5) {
- ControlSend, , {Shift down}{F5}{Shift up}, %dolphinWinTitleRegex%
- } else if (autoSaveSlot == 6) {
- ControlSend, , {Shift down}{F6}{Shift up}, %dolphinWinTitleRegex%
- } else if (autoSaveSlot == 7) {
- ControlSend, , {Shift down}{F7}{Shift up}, %dolphinWinTitleRegex%
- } else if (autoSaveSlot == 8) {
- ControlSend, , {Shift down}{F8}{Shift up}, %dolphinWinTitleRegex%
- }
- ; WinGetTitle, Title, %dolphinWinTitleRegex%
- ; MsgBox, The active window is "%Title%".
- autoSaveSlot++
- if (autoSaveSlot > 8) {
- autoSaveSlot := 4
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement