Page 1 of 1

Click times

Posted: Sun Nov 11, 2012 12:51 pm
by itay1023
hello,

can i have please a code in live code that does than if i click mouseUp more than 3 times,
then live code answers me "hello".

best regards,
Itay

Re: Click times

Posted: Sun Nov 11, 2012 1:45 pm
by Dixie
in the script of the card

Code: Select all

global theclicks

on clickcount
   add 1 to theclicks
   if theclicks > 3 then
      answer "Hello"
      put 0 into theclicks
   end if
end clickcount
In the script of a button,, or in the card script, whatever...

Code: Select all

on mouseUp
  send "clickCount" to this card
end mouseUp
be well

Dixie

Re: Click times

Posted: Sun Nov 11, 2012 2:55 pm
by itay1023
Thanks Dixie