▲ 0 r/AutoHotkey
Having an issue with a small script
~WheelDown:: {
If HWND := WinActive("ahk_group Browser") {
If InStr(WinGetTitle(HWND), "Youtube")
Return
}
}
Basically I want to disable the scroll down button on YouTube pages. I thought the Return would work. Nope. As a test, I replaced it with MsgBox HWND and that did work. As a workaround I am using this,
#HotIf WinActive("ahk_group Browser")
WheelDown::Return
#HotIf
Unfortunately that disables the scroll down button in the entire browser. I prefer my first script.
What is wrong with the first script?
u/Stu_Padasso — 12 days ago