Talk About Network

Google





Mac > Code warrior for Mac > Re: Automatical...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 17 Topic 2176 of 2233
Post > Topic >>

Re: Automatically controlling the mouse and keyboard for GUI scripting?

by glenn andreas <gandreas@[EMAIL PROTECTED] > Oct 29, 2006 at 10:50 AM

In article <ht41h.10491$v81.9297@[EMAIL PROTECTED]
>,
 "Peter Olcott" <NoSpam@[EMAIL PROTECTED]
> wrote:
> > Or do you want to know something else?
> 
> I want to know if GUI scripting by automatically controlling the mouse
and 
> the 
> keyboard is feasible, or infeasible. If it is feasible,  then how is
this 
> accomplished? I already said this in the original posting in fewer
words:
> [Can this be done in Mac OS, and how is it done?] 

There seems to be a slight terminology mismatch here.

"GUI scripting" is an AppleScript technology (build on AppleEvents and 
framework sup****t within in the target application) that allows you to 
write AppleScript scripts that control an application by directly 
manipulating the UI of that application.  This is different than using a 
richer AppleScript interface that scriptable application usually provide 
(which offer semantically rich interface build on the underlying data 
model, as opposed to a series of buttons/menus/etc... - so you'd say 
"create new do***ent" as opposed to "select menu item 'New Do***ent' 
from menu 'File'").

See <http://www.apple.com/applescript/GUI/>


Still not sure what you mean by "automatically controlling the mouse and 
keyboard" though - do you mean "Is it possible to programatically 
control the mouse and keyboard"? In which case the answer is "yes" - see 
CGRemote.h for details.  Or is GUI scripting built on top of that? In 
which case the answer is "not really" (since the apple events actually 
say the "click this button" as opposed to "click at 50,23").  Or are you 
asking if you could create a way to manipulate the UI of another 
application by using those APIs?  In which case the answer is yes, but 
it would be extremely fragile (since it would depend on know exact 
screen locations for various items).
 




 17 Posts in Topic:
Automatically controlling the mouse and keyboard for GUI scripti
"Peter Olcott"   2006-10-28 15:35:24 
Re: Automatically controlling the mouse and keyboard for GUI scr
Michael Ash <mike@[EMA  2006-10-28 16:03:20 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-28 21:43:01 
Re: Automatically controlling the mouse and keyboard for GUI scr
Michael Ash <mike@[EMA  2006-10-28 22:05:30 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-29 06:40:08 
Re: Automatically controlling the mouse and keyboard for GUI scr
Jens Ayton <RWSMSGZIAR  2006-10-29 12:47:12 
Re: Automatically controlling the mouse and keyboard for GUI scr
Michael Ash <mike@[EMA  2006-10-29 06:54:12 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-29 08:14:27 
Re: Automatically controlling the mouse and keyboard for GUI scr
Michael Ash <mike@[EMA  2006-10-29 15:37:18 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-29 22:46:26 
Re: Automatically controlling the mouse and keyboard for GUI scr
glenn andreas <gandrea  2006-10-29 09:41:58 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-29 10:16:12 
Re: Automatically controlling the mouse and keyboard for GUI scr
glenn andreas <gandrea  2006-10-29 10:50:16 
Re: Automatically controlling the mouse and keyboard for GUI scr
David Phillip Oster <o  2006-10-29 20:37:04 
Re: Automatically controlling the mouse and keyboard for GUI scr
"Peter Olcott"   2006-10-29 22:41:39 
Re: Automatically controlling the mouse and keyboard for GUI scr
glenn andreas <gandrea  2006-10-30 09:21:21 
Re: Automatically controlling the mouse and keyboard for GUI scr
froetho@[EMAIL PROTECTED]  2006-10-29 12:20:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 17:50:38 PST 2009.