Faking keypresses on Mac OS X

Ian Wood revlist at azurevision.co.uk
Wed Feb 27 13:42:37 EST 2008


On 27 Feb 2008, at 18:39, Ben Rubinstein wrote:

> On 27/2/08 18:32, Jim Sims wrote:
>
>> 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.
>
> An ingenious suggestion, which might indeed work for some apps; but  
> not for a browser instance inside Rev.  Your suggestion did make me  
> test what happened if my Rev app executed 'paste' while the focus  
> was on a text field in the web page in the browser instance in the  
> stack: the result was can't "paste (empty clipboard or locked  
> destination)".

He didn't mean use Rev's internal paste command, but to use  
AppleScript to make the frontmost application (in this case Rev) paste.

Ian




More information about the use-livecode mailing list