paulm@nikhefk.UUCP (Paul Molenaar) (10/13/87)
Chuq von Rospach asked a question about the protection of his stacks, which was replied by someone else describing a method of disabling the command-key. I tried this method, but it proved to be flaky if the user persisted in pressing the cmnd-period keys. The user would even be brought to script-editing level if pressed enough times (about 3 or 4 times was enough). Another method was making a button in some stack saying "go to card..." and "edit script of this card" I used that script and added some extra features that seem to do the job correctly. It also provides a reasonably good password protection to your stack, making it possible to always edit your stack, while others can only use it. Put in the stack-script (editable in stack-info) and replace my password with your favourite password. Here it is: on idle if the commandkey is down then deadkey put the time into card field "time" pass idle end idle on deadkey answer "Sorry, command-key disabled" with "OK" end deadkey on domenu ask password "Give password" if it is not 2690438967 then answer "Sorry, wrong password" with "OK" else pass domenu end if end domenu on edit ask password "Give password" if it is not 2690438967 then answer "Sorry, wrong password" with "OK" else pass edit end if end edit