Use a Reactor To Catch the Mouse Wheel...

Discussion in 'AutoCAD' started by Kevin Grigsby, Jan 14, 2004.

  1. 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
     
    Kevin Grigsby, Jan 14, 2004
    #1
  2. Not that I know.
     
    Luis Esquivel, Jan 14, 2004
    #2
  3. Kevin Grigsby

    John Uhden Guest

    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.
     
    John Uhden, Jan 15, 2004
    #3
  4. 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
     
    Kevin Grigsby, Jan 15, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.