Autohotkey not working on Youtube

Get help with using AutoHotkey and its commands and hotkeys
foguetes
Posts: 17
Joined: 19 Oct 2018, 04:58

Autohotkey not working on Youtube

18 Jul 2019, 09:21

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
gregster
Posts: 2991
Joined: 30 Sep 2013, 06:48

Re: Autohotkey not working on Youtube

18 Jul 2019, 09:57

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)

Return to “Ask For Help”

Who is online

Users browsing this forum: AHK_user, amagaa, Google [Bot], Peaceful, TAC109 and 45 guests