Page 1 of 1

keyUp F10?

Posted: Fri Jul 27, 2012 11:03 am
by link76
Hello,
how can open a card when I press the key "F10" ?

Code: Select all

on keyUp thekey
   if the key = "F10" then
       open card ....
   end if
end keyUp

F10 key ??

thanks

Re: keyUp F10?

Posted: Fri Jul 27, 2012 11:52 am
by jmburnod
hi Link76
I tried

Code: Select all

on functionKey theKey
   put theKey
end functionKey
On OSX. Depends the preferences system
I can use Function key from 1 to 8. For 9 10 11 12 the finder work instead the script (OSX 10.6.8, small keyboard)

Best regards

Jean-Marc

Re: keyUp F10?

Posted: Sat Jul 28, 2012 1:56 am
by dunbarx
Hi.

You have a typo in your handler. "the key" should be "theKey".

This probably does not matter.

Craig Newman