Hi folks...Hope someone can assist me - I use mpv as an audiobook player on my pc, it works perfectly as when I use "shift+q" it saves my play position and exits the app. So next time I start it, it resumes play where I stopped.
So, I thought, if I use autokey, I could preset times, like 10 mins, 20 mins 30 mins etc. but I cannot get autokey to (focus) on the mpv that's open so when it sends the "shift+q" it saves and closes the program.
I hope that explains what I need. Here's the code I have so far, it's all good except the timer part doesn't work, need some help please?
#SingleInstance, Force
; GUI Layout
; ............
; .....................
GUI, +AlwaysOnTop
Gui, Font, cWhite
Gui, Add, Text,, Server Logins via ssh
GUI, Color, Black
GUI, Add, Button, w200 h30 gOpen_current, Open current book
GUI, Add, Button, w200 h30 gTimer_10m, Timer set to read 10 minutes
GUI, Add, Button, w200 h30 gTimer_20m, Timer set to read 20 minutes
GUI, Add, Button, w200 h30 gTimer_30m, Timer set to read 30 minutes
GUI, Show,x800 y50 w500 h500, The Gui
return
; Labels
; ............
; .....................
GuiClose:
ExitApp
return
Open_current:
Run, cmd
Sleep 500
Send {Text} cd C:\Users\Public\Downloads\mkv\
Sleep 1000
Send {Enter}
Send {Text} mpv "C:\Users\Perrin Aybara\Music\Audiobooks\Simon Haynes - Hal Spacejock Omnibus One Hal Spacejock Books 1-3, Plus Visit\Hal Spacejock Omnibus One Hal Spacejock Books 1-3, Plus Visit.mp3"
Send {Enter}
return
; set to 6000 atm for testing, will use correct value once it works
Timer_10m:
Sleep 6000
Send +q
Sleep 1000
Send {Enter}
return
^x::ExitApp