Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!kseah From: kseah@cs.utexas.edu (Kenneth Cheng-Lim Seah) Newsgroups: comp.sys.mac.hypercard Subject: Re: How to disable command-M? Message-ID: <10955@cs.utexas.edu> Date: 7 Aug 90 02:33:45 GMT References: <6730.26bd9aad@jetson.uh.edu> Organization: ESCware Associates Lines: 31 In article <6730.26bd9aad@jetson.uh.edu> elee6o4@jetson.uh.edu (Kelvin Chi-Keung Hui, EE Depart., U. of Houston) writes: > > I'm a just a beginner for HyperCard scripting. I wonder there is any >way I can disable the command-M message so that users cannot activate the >message box. Or more properly, how can I check the commands such as command-H, >command-F, and etc inside a script? > > Any help will be appreciated. > >Kelvin Hui >elee6o4@jetson.uh.edu Try the following script... on doMenu cmd if cmd = "Message" then answer "Bleah!!" else pass doMenu end if end doMenu You can have a series of nested if's to check for the various other menu calls (e.g. Help, Find... etc). Also you could set the userLevel property to 1 or 2 or whatever to lock out the message (I think!) -- Kenneth Seah (kseah@cs.utexas.edu||PO Box 8565, Austin, TX 78713-8565) Grad Student, Dept of Computer Sciences, University of Texas at Austin "Money means nothing 'cause hacks are free..." (Apologies to MK) Disclaimer: Disclaim 'er?? Why I don't even know 'er...