Faking keypresses on Mac OS X

Trevor DeVore lists at mangomultimedia.com
Wed Feb 27 14:34:04 EST 2008


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,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com




More information about the use-livecode mailing list