Use a Reactor To Catch the Mouse Wheel...

Kevin Grigsby

Usenet Archive
Joined
Jan 14, 2004
Messages
8
Reaction score
0
I think the title says it all...

I am looking for a way to notice when the mouse wheel has been used. I tried catching the commandEnded using a reactor but apparently it is not doing the Zoom command. Or seemingly any other command for that matter. The mouse reactors seem to only be Right click and Double click.

Is there a way, either through VLISP or VBA that I can find out when someone has zoomed (in or out) via the mouse wheel?

Thank you,
Kevin Grigsby
 
One would think that Autodesk would have enabled the values of "viewctr" and "viewsize" to trigger the :vlr-sysVarChanged and :vlr-sysVarWillChange events, but alas; they haven't. The only way I know how to monitor the change in VisualLsip is via a (grread) loop.
 
Of course I agree that it is an ... "oversite" shall we say.

I need to catch it whenever. Middle of a command, not in a command. I am not sure if (grread) will do the trick. I'll look into it. I may check Microsoft site to see if I can catch it at the OS level and then pass data to AutoCAD...

Thank you for your help.
Kevin Grigsby
 

Latest threads

Back
Top