Home » Questions » Computers [ Ask a new question ]

Hover and Scroll

Hover and Scroll

I used to have an app that would scroll the window your mouse was hovering over instead of scrolling the active window. Unfortunately I lost that app. Does anyone know what that app is called?

Asked by: Guest | Views: 311
Total answers/comments: 2
Guest [Entry]

"I use AutoHotKey for this:

EasyWheel(d)
; if _WHEELAUTOFOCUS if set, check which window is under the mouse and gives it focus if it hasn't already
; then send scroll event to the control under the mouse
; original code from Shimanov: http://www.autohotkey.com/forum/viewtopic.php?t=6772#54821
{
Global _WHEELACC
, _WHEELMAXN
, _WHEELAUTOFOCUS
Static t, s

if ( A_TickCount > 500+t) {
t := A_TickCount
s :=0x780000
}
else if (s < _WHEELMAXN)
s += _WHEELACC

MouseGetPos x, y, hwnd
h := DllCall(""WindowFromPoint"", ""int"", x, ""int"", y)
if _WHEELAUTOFOCUS && (hwnd<>WinExist(""A""))
WinActivate, ahk_id %hwnd%
testan:=WinActive(""A"")
if (testan<>hwnd){
SendMessage, 0x20A, d*s,(y<<16)|x,, ahk_id %h%
}
else if (d=-1){
send {WheelDown}
}else{
send {WheelUp}
}
}

WheelUp:: EasyWheel(1)
WheelDown:: EasyWheel(-1)"
Guest [Entry]

There’s a few that can do that, but TweakUI for sure has that option (Mouse->X-Mouse).