Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!carterbk From: carterbk@apple.com (Bryan 'STAKMan' Carter) Newsgroups: comp.sys.mac.hypercard Subject: Re: Double-Clicking and Hypercard Message-ID: <656@internal.Apple.COM> Date: 13 Feb 89 18:37:53 GMT References: <968@taurus.BITNET> Sender: usenet@Apple.COM Organization: Earth Lines: 40 In article <968@taurus.BITNET> shani@TAURUS.BITNET writes: > Anyone has an idea how to simulate a double-click on HC? my expirience is > that if you doubleclick a button, HC treats it as a single click... The following was submitted, but does not check to see if the cursor was within the rect of the button: on mouseUp wait 10 ticks --60 ticks in a second - adjust to your liking. if the mouseclick then --double-click script else --SIngle-click script end if end mouseUp Here is the script which will check for the mouseLoc: on mouseUp wait 10 ticks --60 ticks in a second - adjust to your liking. if the mouseclick ANDB the clickLoc is within the rect of me then --double-click script else --SIngle-click script end if end mouseUp You may wish to set the "wait 10 ticks" to "wait 15 ticks", as 1/4 of a second is an average double-click response time. (This 'average' is based upon 450 case studies I did.) Have Fun!! 'STAKMan'aging, Bryan K. 'STAKMan' Carter All opinions/views/comments are mine!! <<>>