script about click a button 4 times

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tony123qwe
Posts: 3
Joined: Tue Nov 05, 2013 6:28 pm

script about click a button 4 times

Post by tony123qwe » Thu Nov 07, 2013 1:19 pm

Excuse me, how to realise a function that click a button 4 times in 2 seconds and then go to another card?
Thank you.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: script about click a button 4 times

Post by Klaus » Thu Nov 07, 2013 1:39 pm

Hi Tony,

is this what you mean:
...
dispatch "mouseup" to btn "el clicko"
wait 666 millisecs
dispatch "mouseup" to btn "el clicko"
wait 666 millisecs
dispatch "mouseup" to btn "el clicko"
wait 666 millisecs
dispatch "mouseup" to btn "el clicko"
go cd "wherever..."
...
?

Do you really need to "virtually" click the button 4 times?
Can't you just do what the buttons script demands and that 4 times? 8)


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: script about click a button 4 times

Post by dunbarx » Thu Nov 07, 2013 2:50 pm

Hi.

I am with Klaus on this. What are you trying to do? I bet there is a better way...

Craig Newman

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: script about click a button 4 times

Post by Simon » Thu Nov 07, 2013 10:51 pm

I think Tony wants a speed test.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: script about click a button 4 times

Post by dunbarx » Thu Nov 07, 2013 10:54 pm

Radar? Or just see if the pupils are dilated?

With a two second sweep, I would think speed would kill.

Craig

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: script about click a button 4 times

Post by Simon » Thu Nov 07, 2013 11:12 pm

errrr... I meant clicking the button very fast :?:
4 times in under 2 seconds?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply