Sign in to follow this  
Followers 0
Paulie

count button pushes

7 posts in this topic

How would you go about counting how may times a GUI button is pushed, within like 5 seconds?

i can't think straight right now, can anyone help?

Share this post


Link to post
Share on other sites



Hi,

how do you know when to start? Hotkey?

Make a func timer with

$begin = TimerInit()

$dif = TimerDiff($begin)

If $dif >= 5000 Then stop.

And count $msg = buton

$i += 1

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

how do you know when to start? Hotkey?

Make a func timer with

$begin = TimerInit()

$dif = TimerDiff($begin)

If $dif >= 5000 Then stop.

And count $msg = buton

$i += 1

So long,

Mega

See... thats what i get when i try to do 53 things at once :P

thanks

:nuke:

Share this post


Link to post
Share on other sites

See... thats what i get when i try to do 53 things at once :P

thanks

:nuke:

Why 53 things .. not 50 or 55?

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Why 53 things .. not 50 or 55?

$Number = Random(0,100,1)
Msgbox(0,"Random Number of the Day", "Your Random Number is: "&$Number)

:P:nuke::D:lol::)

Edited by Paulie

Share this post


Link to post
Share on other sites

$Number = Random(0,100,1)
Msgbox(0,"Random Number of the Day", "Your Random Number is: "&$Number)

:nuke::):lol::idea::D

lol :P

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

wow i ran that random number of the day program, and the first number to pop up was... ONE? LOL this was the funniest thing that has happened to me all month.


- Dan [Website]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0