Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!shuxd!devildog!atux01!jlc From: jlc@atux01.UUCP (J. Collymore) Newsgroups: comp.sys.mac.hypercard Subject: Re: Preventing Mouse-Click Actions Summary: another thought Message-ID: <1270@atux01.UUCP> Date: 2 Jun 89 14:39:27 GMT References: <619@ashtate.UUCP> <40759@bbn.COM> Organization: AT&T CSEd/CET, Piscataway, N.J. Lines: 39 In article <40759@bbn.COM>, mesard@bbn.com (Wayne Mesard) writes: > In article <619@ashtate.UUCP> peggyl@ashtate.UUCP (Peggy Lerch) writes: > >Is there any way to prevent a button script from executing if > >the mouse button is clicked while the script is already executing? > > Here are two approaches: > > o You could have the script record the time at which it ran in a > global variable. Then, at the top of the script, compare this value > to the current time, and if the difference is less than N ticks > don't run the script again (or beep, or tell the user to take a > tranquilizer or something). > > >I'm trying to write educational stacks for my three-year old who > >goes click-crazy and then has to wait for a long time for the > >script to stop repeating itself. > > This could also be useful for Hypercard neophytes who are forever > double-clicking, since that's what they're used to from using the Finder. I just thought that if this was implemented using a verbal response from either MacinTalk, or A digitized voice (as in using "MacRecorder" by Farallon Computing), this might be especially effective for young children. For example, after creating such a script you could have a message kick in that said: "Please don't click the mouse so much or so fast!" To a young child I would expect that this would have one of three effects: 1) Either it startled the child enough to obey the recorded command, 2) THe child would double-click MORE OFTEN for the "fun" of hearing the computer speak, 3) THe child would ignore the computerized command altogether. Anyway, it might be worth trying. Jim Collymore