I don't know how many on this list will be able to offer a solution. My method of accomplishing this sort of work in the past has been to ensure that my applications are scriptable and then executing automator workflows against them. If that's not a good route to take for you (I would encourage looking into it as scriptability opens whole new worlds for many types of applications and gives them large value beyond the confines of their UI), Automator.app has the ability to record your interaction with the OS and applications and repeat that workflow for either n seconds or m number of times. I'd encourage you to check out some other lists where people more accustomed to this sort of thing might be able to offer a better answer -

http://lists.apple.com/mailman/listinfo/applescript-implementors

http://lists.apple.com/mailman/listinfo/automator-dev

-rob.

On Dec 21, 2008, at 9:47 AM, Luca Cioria wrote:

First, I know little of os x programming since I bought my mac 2 weeks ago.

I'd like to develop a set of command line tools that do gui scripting stuff.
Some examples:

click --> clicks the mouse at x y coordinates, optionally relative to
current window, can be single click, double click, right, middle, mouse-down
only (no releasing) etc. etc.
getPixel --> get the color of a pixel on the screen at x y coordinates,
optionally relative to current window.
send --> sends keystrokes
winActivare --> activate a specified window

etc etc
like the commands ahk has on windows

Is this possible ? How does cocoa comes into this? What approaches should I
follow?
Has anyone done something like this (some way of scripting that is not
applescript poor GUI scripting)?

bye!
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rob%40pinchmedia.com

This email sent to [email protected]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to