Faking keypresses on Mac OS X

Luis luis at anachreon.co.uk
Wed Feb 27 19:19:20 EST 2008


Why not just type it in by hand?

Cheers,

Luis.


Trevor DeVore wrote:
> On Feb 27, 2008, at 1:55 PM, Jim Sims wrote:
> 
>> My suggestion was  to have applescript perform the paste.
>> I think the following is paste but might be copy (cannot find my key code
>> cheat sheet).
>> ...
>> tell application  frontApp
>>     activate
>>     tell application "System Events"
>>         key code 8 using command down  --34 id for Dvorck keyboard
>>     end tell
>> end tell
> 
> 8 is the C Key. 9 is the V key which I think is what you are after (you 
> are using virtual key codes, right?).
> 
> Regards,
> 



More information about the use-livecode mailing list