Page 1 of 1

Autohotkey not working on Youtube

Posted: 18 Jul 2019, 09:21
by foguetes
I'm having trouble making Autohotkey work on youtube tabs in Google Chrome.

I'm currently using a script to skip tracks on Artlist.io using the side scroll.

Code: Select all

; Artlist.io

SetTitleMatchMode, 2
#IfWinActive, artlist:

WheelRight::Right
WheelLeft::Left

#IfWinActive

return
I tried doing the same for youtube, by remapping the side scroll buttons to the Right and Left arrow keys but it's not working.

Code: Select all

; Youtube

SetTitleMatchMode, 2
#IfWinActive YouTube

WheelRight::Right
WheelLeft::Left


#IfWinActive

return

Re: Autohotkey not working on Youtube

Posted: 18 Jul 2019, 09:57
by gregster
Can't reproduce it. Here, it skips 5 secs on Youtube. Make sure that SetTitleMatchMode, 2 gets executed in your actual script... https://www.autohotkey.com/docs/Scripts.htm#auto
But you could still try WheelRight::Send {Right}

I am also assuming that your Chrome browser doesn't run with elevated rights (which would require your script to run as admin - but better not run Chrome elevated in the first place)