Re: Moving / clicking the mouse programmatically
Re: Moving / clicking the mouse programmatically
- Subject: Re: Moving / clicking the mouse programmatically
- From: Angela Brett <email@hidden>
- Date: Tue, 11 Sep 2001 23:30:19 +1200
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 have no idea how to do that, or the thing I'm suggesting... but it
seemed more common in OS 9 to draw a red loop around whatever was
supposed to be clicked on, with the little help window describing
what to do, which changes when the user actually clicks wherever he
or she is supposed to. Maybe it would be better, easier and/or more
consistent to do it that way, but then, that would be consistent with
Mac OS 9, which would be kind of strange. I don't remember seeing a
demo that actually moves the mouse around though.