keyUp F10?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

keyUp F10?

Post by link76 » Fri Jul 27, 2012 11:03 am

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: keyUp F10?

Post by jmburnod » Fri Jul 27, 2012 11:52 am

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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10321
Joined: Wed May 06, 2009 2:28 pm

Re: keyUp F10?

Post by dunbarx » Sat Jul 28, 2012 1:56 am

Hi.

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

This probably does not matter.

Craig Newman

Post Reply