F1 as the men shortcut?

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Feb 16 16:51:50 CST 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
     break
   CASE 2
     -- functionkey 2 down
     break
   CASE 3
     -- functionkey 3 down
     break
   CASE n
     -- functionkey n down
     break
   END SWITCH
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
>
>or
>
>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...
>
>cheers
>Xavier

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



More information about the use-livecode mailing list