Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save CanYouJustWorkPlease/0884a964e3a4f85f21aff18b79c3fea7 to your computer and use it in GitHub Desktop.

Select an option

Save CanYouJustWorkPlease/0884a964e3a4f85f21aff18b79c3fea7 to your computer and use it in GitHub Desktop.
Windows explorer context menu mouse wheel scroll for Windows 7, 8, 8.1, 10, 11
toggle = 0
#MaxThreadsPerHotkey 2
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
#If WinActive("ahk_class EVERYTHING ahk_exe Everything.exe") && !MouseIsOverControl("SysListView321")
WheelUp::Send, {Up 5}
WheelDown::Send, {Down 5}
#If WinActive("ahk_class CabinetWClass ahk_exe explorer.exe") && !MouseIsOverControl("DirectUIHWND3") && !MouseIsOverControl("RICHEDIT50W1")
WheelUp::Send, {Up 5}
WheelDown::Send, {Down 5}
MouseIsOverControl(refCtrl)
{
MouseGetPos,,,, ctrlName
return ctrlName = refCtrl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment