F1 as the men shortcut?

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Feb 16 17:51:50 EST 2006

Why are you guys dancing around the bush; how about the old HC function??
This works great!

on functionkey what
   SWITCH what
   CASE 1
     -- functionkey 1 down
   CASE 2
     -- functionkey 2 down
   CASE 3
     -- functionkey 3 down
   CASE n
     -- functionkey n down
end functionkey

note that on Mac OS many keys are assigned to system tasks but can be disabled.
1-4 are reserved, 13,14,15,16 don't appear on all keyboards and 11 
and 12 want to be owned by Dashboard.

>one of 2 classic solutions
>send ("MenuPick" && themenuname) to btn mymenu
>set the menuhistory of btn mymenu to thislinenumber...
>Another way, more tedious but with more freedom allowed is that if your
>menupick handler calls a handler in the button or stack script, then you can
>simply <send handlername to the button> (no menupick && stuff - which fails
>if you change the menuitem) or in the simplest case, if your handler is in
>the card, background or stack, you don't need to send anything, just call
>the handler...

stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -

More information about the Use-livecode mailing list