[comp.sys.mac.hypercard] moving the mouse without clicking

gt3963b@prism.gatech.EDU (Robert C. Naum) (02/18/91)

Being a novice c.s.m.h reader, I'm not sure if this question has been asked
before but...

I'm interested in moving the mouse pointer using a script.  I'm not
talking about CLICKING a point or DRAGGING from one place to another,
but simply moving the mouse.  I have a button that I click which
brings up a dialog box asking me if I'm sure I want to do this.  I would
like the mouse to sit atop the "cancel" button, similar to what's done
in Sunview when you click on a button.
My questions:  What command do you use, must it be done with XCMD's,and
do you need 2.0?
	Please e-mail me.

-- 
--robert naum--------gt3963b@prism.gatech.edu------------ALink:ST0615----
--"...Hey, grow up! Stop throwing rice at me... "

ollef@sics.se (Olle Furberg) (02/18/91)

In <22208@hydra.gatech.EDU> gt3963b@prism.gatech.EDU (Robert C. Naum) writes:

>I'm interested in moving the mouse pointer using a script.  I'm not
  [---]
>I would like the mouse to sit atop the "cancel" button, similar to what's


I think I've seen a XCMD for this somewhere, BUT:

1. Do you understand that this is strongly against the Macintosh user
   interface guidelines?  The mouse (and the cursor) belongs to the user.

2. Let's assume you had a MoveMouse XCMD: how do you get the coordinates
   of the "Cancel"-button? Are you sure it will always be at the same place?

3. The Mac dialogbox often has a "default button": it's usually in the
   lower right bottom. The user could activate this button by pressing
   return or enterkey. On Sunview they have choosen another approach:
   they move the cursor. As you work on a Mac and not a Sun: please
   conform to the Mac interface rules.