Posts: 1,006
Threads: 330
Joined: Mar 2007
Hi,
Wait for wheel button up/down
This doesn't seem to be one of the options in the wait dialogs. Is it possible?
Thanks,
Stuart
Posts: 12,140
Threads: 142
Joined: Dec 2002
usually it is the same as middle button
Posts: 1,006
Threads: 330
Joined: Mar 2007
Hi,
I meant scrollwheel roll-up, scrollwheel rol-down, etc, not scrollwheel/downclick. These are differentiated in the trigger section, so I thought it could be done in wait statemetns.
Thanks,
Stuart
Posts: 12,140
Threads: 142
Joined: Dec 2002
3 ways:
1. If in a dialog, use WM_MOUSEWHEEL message. It comes to the focused control, so you would need to subclass controls.
2. Use a function that has wheel trigger. It could set a global variable, and the macro could wait for the variable.
3. Use low level mouse hook. Again, the communication between the hook function and the macro could be through a global variable.