Faking keypresses on Mac OS X

Jim Sims sims at ezpzapps.com
Wed Feb 27 14:45:10 EST 2008


On Feb 27, 2008, at 8:34 PM, Trevor DeVore wrote:
>
> 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

Yup  :-/


If field "z" contains this (could also use a Custom Property):

tell application "System Events"
		key code 9 using command down
	end tell


Then fake button for letter "A" is this:

on mouseUp
set the clipboardData["text"] to "A"
do fld "z" as Applescript
end mouseUp


sims
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ClipaSearch Pro
http://www.ClipaTools.com

Across Platforms - Code and Culture
http://www.ezpzapps.com/blog/







More information about the use-livecode mailing list