Faking keypresses on Mac OS X

Jim Sims sims at ezpzapps.com
Wed Feb 27 13:32:03 EST 2008

On Feb 27, 2008, at 7:11 PM, Ben Rubinstein wrote:

> So, thank you for the suggestion; but I'm still looking.  Granted  
> that 'type' exists, I'm more doubtful if there is anything else in  
> Rev (though I'd still be delighted to be 'reminded' of something  
> else that I'd 'forgotten'); does anybody know of ways to fake a  
> keypress to the system?  Evidently it's possible at a Cocoa or  
> similar level, as there are various programs that for example allow  
> you to use an apple remote and selectively map buttons on the remote  
> to keypresses.  But I don't even know how to do it at that level,  
> and I was hoping to avoid writing my first external for about five  
> years...

Might this work?

Put the chars you want onto clipboard in Rev - use a suitable time  
delay (send in...)
the use an applescript which pastes into the topmost application.


ClipaSearch Pro

Across Platforms - Code and Culture

More information about the Use-livecode mailing list