I would like AutoHotkey to treat the Mouse Wheel in the same way the mouse controller for Genius mice and some other brands do:
1-: The wheel moves the scrollbar under the pointer (if any) instead of the scrollbar in the active window (if any). The scrollbar affected can be into an inactive window that remains inactive (so it doesn't come to the front).
2-: Using the SHIFT key in conjunction with the wheel, moves the horizontal scrollbar (if any) instead of the vertical one.
Can this behavior be emulated with AutoHotkey?
I was trying to make some sort of script for the first feature, but without success:
WheelDown:: MouseGetPos, , , id, WinGetTitle, title, ahk_id %id% ControlClick, Control, title, , WheelDown
This should get the id of the window under the pointer, find its title and send a wheeldown to that window, but it doesn't work. I'm posting it here just in case someone gets inspired.