• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Moving / clicking the mouse programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving / clicking the mouse programmatically


  • Subject: Moving / clicking the mouse programmatically
  • From: Ken Tabb <email@hidden>
  • Date: Tue, 11 Sep 2001 11:34:38 +0100

Hi,
is there any way to move the mouse's position and clicks programmatically
(onscreen, not on the desk, of course!) in Cocoa, so that you can move
the mouse's pointer across the screen (for example)? I'd like to offer a
'demo' part of my app which shows you where to click etc. I'm also doing
a help system, but (a) this isn't so much a 'help' as a 'tour' and (b)
nobody reads help! What it would end up looking like is the old Apple
Help system, where you could take control of the app in order to show the
user how to do something.

I'd be aiming to put a 'press escape (or whatever) to stop the demo', so
that they get control of their mouse back.

The last resort approach is to hide the cursor, show something looking
not unlike a cursor, and move it, with simulated button clicks (prefined
list of method calls) to do the actions.

Or am I being stupid even wanting to do this? Perhaps a QuickTime movie
of the app in use would be better?

Having said all that, being able to physically move the mouse on the desk
would be pretty cool too! If I could move it left and right fast enough,
I could write a Desk Tidy app 8^)

As long as it didn't knock the tower of coke cans down!

Thanks for any feeders,
Ken

----------------------------------------------
Ken Tabb
Mac & UNIX Propellerhead & Network Bloke (Health & Human Sciences)
Computer Vision / Neural Network researcher (Computer Science)
University of Hertfordshire
e-mail: email@hidden
http://www.health.herts.ac.uk/ken/

Certified non-Microsoft Solution Provider


  • Prev by Date: Re: cocoa-dev digest, Vol 1 #566 - 14 msgs
  • Next by Date: Re: UMLish modellers?
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #566 - 14 msgs
  • Next by thread: Re: Moving / clicking the mouse programmatically
  • Index(es):
    • Date
    • Thread