The Microsoft docs say it's a negative value if I rotate backward. When I rotate back, the value is 65416. How do I get a negative value?https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-mousewheel wrote:The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user.
Code: Select all
Gui, +AlwaysOnTop
Gui, Show, w200 h100
OnMessage(0x020A, "WM_MOUSEWHEEL")
WM_MOUSEWHEEL(wParam, lParam, msg, hwnd) {
ToolTip % wParam >> 16
}