Mac Roundup AAPL: $173.74 (0.00)ArchivesResourcesContact

Advanced Search

 

The Archives Section

 

 
 

Roundup Date: Wednesday, May 14, 2008

Move and click the mouse via code

Move and click the mouse via code - (View article)
macosxhints.com
Most OS X apps can have their interface elements accessed by AppleScript, and so anything can be scripted. Unfortunately, not all apps use an Aqua interface, especially games with game-engine-rendered interface elements. This means AppleScript can't find buttons, etc., to click on, and you're out of luck trying to automate actions. Recently, I was given the unpleasant task of automating actions in such unfriendly apps. I just about went crazy trying to find a way to write a simple script with coordinates for mouse click events.There's nothing available within AppleScript for pushing the mouse around, and I couldn't find any... [More]