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.

Revisions

  1. CanYouJustWorkPlease revised this gist Oct 29, 2023. No changes.
  2. CanYouJustWorkPlease created this gist Nov 30, 2020.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    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
    }