Author Topic: Moving the Crosshairs  (Read 2625 times)

0 Members and 1 Guest are viewing this topic.

cmwade77

  • Swamp Rat
  • Posts: 1449
Moving the Crosshairs
« on: February 21, 2011, 11:58:57 AM »
I need to find a way to cause the crosshairs to move without moving the mouse via LISP or a script (without using an AutoCad command, as I need to do this while in the middle of a command), does anyone have any ideas?
« Last Edit: February 21, 2011, 12:04:04 PM by cmwade77 »

kpblc

  • Bull Frog
  • Posts: 396
Re: Moving the Crosshairs
« Reply #1 on: February 21, 2011, 12:16:53 PM »
What for do you need it? Usually mouse moves by user to select object or define the point. Using LISP you can eval these values and do not move the mouse...
Sorry for my English.

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Moving the Crosshairs
« Reply #2 on: February 21, 2011, 12:36:34 PM »
It's to work around a bug.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Moving the Crosshairs
« Reply #3 on: February 21, 2011, 12:49:33 PM »
You could set the cross hair color the same color as the background, then use grdraw/grvecs to draw one moving around some defined set of points (relative to view).
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Moving the Crosshairs
« Reply #4 on: February 21, 2011, 12:56:27 PM »
No, unfortunately I must have the cross hairs move. I need to simulate mouse movement to the point that AutoCAD thinks the mouse moved, even if it hasn't.

SOFITO_SOFT

  • Guest
Re: Moving the Crosshairs
« Reply #5 on: February 21, 2011, 01:20:46 PM »
Hello all:
in the ancient DOS that could be done. Calling interrupts mouse pointer control and deceiving the records that kept the poscion X Y. .. but that of course is almost prehistoric. :-(
So I fabricated the my first driver for a digital tablet that had no human or divine form that runs in DOS.  :lol:
Greetings.

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Moving the Crosshairs
« Reply #6 on: February 21, 2011, 01:22:54 PM »
LOL, that is old school and would probably not work now unfortunately.....grr

Chris

  • Swamp Rat
  • Posts: 548
Re: Moving the Crosshairs
« Reply #7 on: February 21, 2011, 02:18:32 PM »
I use Autoit to do some mouse moving.  I have a 3 monitor setup, each with different vertical resolutions, the script file allows me to go from monitor to monitor in either direction without expereincing the dead zone one would normally experience when going from a 1200 px high screen to a 768 px high screen (all screens aligned at top).  Perhaps you can look into something like Autoit?  I dont know how you would call it via lisp, but in theory, you could create a call that will move your mouse for you.
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10