I've written a bit of code that intercepts mouse wheel up/down events that happen over a GUI button, and sends them someplace else:
Code: Select all
WinTitle := "MyText.txt - Notepad"
Gui, Margin, 10, 10
Gui, Add, Button, w80 h24 HWNDhButton1, Button 1
Gui, Show, w400 h200, Example
WinSet, AlwaysOnTop, On, Example ;Always on top is ON
return
WheelDown:: ;Scroll down detected
MouseGetPos, MouseX, MouseY, MouseWin, MouseCtl, 2 ;Get MouseCtl
If (MouseCtl = hButton1) { ;Check if cursor is over button
ControlClick, x100 y800 ,%WinTitle%, , WheelDown ;Send WheelDown to the window
}
return
If the above approach is not a good foundation for this, I'm happy to scrap it and start fresh.
Ideas?
Thanks for your kind help.
R