Whenever my music/audiobook player is the active window, draw a slider on the screen. The slider should look like:
1.00x ---1.10x ---1.20x ---1.30x and so on in increments of .10 all the way up to 2.00x
The script would be for changing the playback speed in the audio player when I move the slider.
So the code might be:
Code: Select all
#IfWinActive ahk_exe MusicBee.exe
; insert the proper command to GUI Add a slider bar.
SliderPosition1.00x:
ControlSend,, {=}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe ; = is the hotkey to set the tempo back to its default level
Return
SliderPosition1.10x:
ControlSend,, {=}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe
Sleep, 200
ControlSend,, {]}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe ; = to set the tempo back to 1.00, ] to increase the tempo by .10.
Return
SliderPosition1.20x:
ControlSend,, {=}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe
Sleep, 200
ControlSend,, {]}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe ; = to set the tempo back to 1.00, ] to increase the tempo by .10.
Sleep 200
ControlSend,, {]}, ahk_class WindowsForms10.Window.8.app.0.2bf8098_r7_ad1 ahk_exe MusicBee.exe ; = to set the tempo back to 1.00, ] to increase the tempo by .10., for a second time, bringing the playback speed up to 1.20x.
Return
Any help is always appreciated. Thank you so much for your time.