|
Re: How to set the mouse position? [message #54783 is a reply to message #54640] |
Tue, 03 July 2007 00:57  |
airy.jiang
Messages: 37 Registered: May 2007
|
Member |
|
|
On 7 2 , 8 53 , David Fanning <n...@dfanning.com> wrote:
> airy.ji...@gmail.com writes:
>> Is there anyway to change the
>> mouse position by writing some code rather than by move it with my
>> hand?
>
> Try TVCRS.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks for your help,David.
But I still have a question,my program is using object-oriented
graphics mode.When I use the TVCRS in my program,it indeed changed the
position of the mouse,but not the position I want it.I've wrote
that:"TVCRS,0,0,/DEVICE",but the position of the mouse change to the
left side of the center of the screen,rather than center of the
screen.Is there any other way can change the position of the mouse in
object-oriented graphics mode?
Thank you again!You really did a lot of thing to helping the people
who are learning or using IDL.
|
|
|