image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old August 4th, 2007, 04:45 AM
Registered User
 
Join Date: Jun 2007
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
PGTips is on a distinguished road
Mouse clicks with Applescript

Hello there, Im trying to automate a process with an application. What I'd like to do is to get Applescript to simulate a left/right mouse button click on a certain region of the screen (where a button will be). There's basically a sequence of buttons that needs to be clicked and the application sadly is written in Qt and has no Automator support

Any help will be greatly appreciated.
Reply With Quote
  #2  
Old August 7th, 2007, 06:50 AM
Registered User
 
Join Date: Jun 2007
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
PGTips is on a distinguished road
Bumping for the greater good, and also because I've managed to solve my own problem. Here's the solution for posterity's sake.

Applescript doesn't have the built-in support for reading/sending mouse-clicks in such a way. To achieve that, a plug-in is required. However, since most of the plug-ins I've found were for Mac OS 9 and don't work on OS X on Intel, I had to try something different.

In comes Automator Virtual Input. It allows you to create a work flow that involves reading mouse input and sending mouse clicks to a specific region. It's shareware but it does what I need.

With a bit of applescripting and the automator workflow, I've managed to solve my problem.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 01:33 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.