Polling the mouse

Geoff Canyon gcanyon at inspiredlogic.com
Fri Feb 22 17:49:01 EST 2002


At 1:22 PM -0700 2/22/02, Scott Raney wrote:
>But did you actually try this?  It *doesn't* work that way in either
>MC or HC now.  If you don't see it, try increasing the loop count (you
>may need to at one zero for HC, and about 3 in MC/RR ;-)

Maybe this script will make it clearer:

on mouseUp
  repeat with i = 1000 down to 1
    put i
  end repeat
  put the mouse
end mouseUp

If this is in a button, click the button once, and (in either HC or Rev or MC) you will see the message box count down from 1000 to 1, and then display "up"

If you click the button, and then press and hold the mouse button (while the countdown is displaying), you will see the message box count down to 1 and then display "down"

If you click the button and while the countdown is in progress click a second time (down and up while the countdown is displaying), even though the mouse button is "up" the end message displayed is "down"

regards,

Geoff




More information about the use-livecode mailing list