![Yay! Dance! Yay! :dance:](./images/smilies/dance.gif)
I am trying to make a scroll counter but do not want to bind the scroll wheel and couldn't find one on the forum. So I tried windows messaging. I was able to get a tooltip counter, however met with two issues:
1. The count using Tooltip only shows up and counts when I hover over a GUI only. Can I have the script count regardless if I'm hovering over a GUI or not?
2. How can I make the counter subtract when I scroll up and add when I scroll down? I couldn't find an OnMessage specific to direction. I'm sure there is some kind of creative way? Some kind of state change?
Code: Select all
MouseWheelCounter = 0
Onmessage(0x020A,"MouseWheel")
MouseWheel(){
MouseWheelCounter++
Tooltip, %MouseWheelCounter%
SetTimer, RemoveToolTip, -1000
}
Return
RemoveToolTip:
ToolTip
return