Bonsoir Dominique, >> on menupick quoi >> switch quoi >> case "nouveaux" >> create card >> break >> ... >> end switch >> end menupick > > I know that I could build a menu -- but, for the sake of simplicity > (and > elegance ;-)) I preferred not to build a menu, instaed I put some > handlers at the stack level (or at the group level) in order to catch > my > commands... > > -- > Regards, > (-8 Dominique
ok, ok, another try... For the sake of simplicity and elegance ;-) on commandkeydown thekey switch thekey case "n" create card break case "b" beep break end switch end commandkeydown I put this in a stack-script and it worked. Had new card (although i already got one...) and it beeped :) Try this at home ;-) Au revoir Klaus Major [EMAIL PROTECTED] _______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard