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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: script about click a button 4 times

Post by Klaus »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: script about click a button 4 times

Post by dunbarx »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: script about click a button 4 times

Post by dunbarx »

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 »

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