External System Clicks (for macros)

Interested adding compiled externals from LiveCode and third parties to your LiveCode projects? This is the place to talk about them.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Location: Maryland, USA
Contact:

External System Clicks (for macros)

Post by Nonsanity » Sun Aug 08, 2010 11:24 pm

Has anyone come across an external that sends a system click or mouse motion outside of Rev, such as one would use to create macros with other applications?

I'm looking for a Mac OS X compatible solution for this.

Thanks!
~ Nonsanity
~ Chris Innanen

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4016
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: External System Clicks (for macros)

Post by bn » Mon Aug 09, 2010 3:32 pm

Hi Chris,
I do not know of any external to do that.
But depending on your needs you might get some of that functionality by using applescript.

Maybe you give us an example of what you want to do.

regards
Bernd

Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Location: Maryland, USA
Contact:

Re: External System Clicks (for macros)

Post by Nonsanity » Fri Aug 13, 2010 5:03 am

I mainly want to be able to simulate clicks outside of Rev, in some other application. Rev already knows where the mouse is on the screen, but the built-in commands to click just send messages, which will do nothing for other apps.

Using Applescript is an idea, but I don't think it would work for every app.

If you've seen tools that allow you to record a sequence of mouse movements and clicks, then play it back... I'm looking to do something similar, though recording isn't a necessity. (In this case, I'll only need the mouse position when my script is activated to calibrate the clicks. The rest of the settings - where and when to click thereafter - will come from code I write.)

I think I had just such an XCMD back in the Hypercard days, but that was OS 7 and written in Pascal, most likely.
~ Nonsanity
~ Chris Innanen

Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Location: Maryland, USA
Contact:

Re: External System Clicks (for macros)

Post by Nonsanity » Fri Aug 13, 2010 5:34 am

Ah... The AppleScript idea seems like it might pan out. A bit hacky, but I think it will work.

The Extra Suites app from http://www.kanzu.com/ did the trick. It adds better mouse control to AppleScript.

Now if only there was a similar addition to Rev........ :)
~ Nonsanity
~ Chris Innanen

Post Reply

Return to “Using Externals”