bookmark - Button With Secconds

Button With Secconds

 
 Discussion by ikkeugh with 3 Replies.
 Last Update: June 23, 2007, 1:12 pm
 
bookmark - Button With Secconds  
    
free web hosting
 
I've got a question :
How do u make those buttons that countdown :
if you don't press a button in (ex) 5 seconds , that that button will be chosen?
(like the one of windows if you don't have a legal version 8-) )

Thu Jun 21, 2007    Reply    New Discussion   


QUOTE (ikkeugh)

I've got a question :
How do u make those buttons that countdown :
if you don't press a button in (ex) 5 seconds , that that button will be chosen?
(like the one of windows if you don't have a legal version 8-) )
Link: view Post: 105891


You didn't mention about what programming language you're using. And i never since a windows that mention you don't have a legal version. I do see auto close windows for AVG auto update.

Generally, for windows, you can just start a timer with 1 second interval, along when you popup the windows, then update the the button showing a countdown on the button's text, on every tick of the timer. Keep static counter or a class wise variable for that purpose. When the counter tick to 0, close the window

Fri Jun 22, 2007    Reply    New Discussion   

QUOTE (faulty)

You didn't mention about what programming language you're using. And i never since a windows that mention you don't have a legal version. I do see auto close windows for AVG auto update.

Generally, for windows, you can just start a timer with 1 second interval, along when you popup the windows, then update the the button showing a countdown on the button's text, on every tick of the timer. Keep static counter or a class wise variable for that purpose. When the counter tick to 0, close the window
Link: view Post: 105946

or for another exemple hitman pro ....
(windows : http://www.codinghorror.com/blog/images/th...not-genuine.jpg , you have to wait 5 seconds before you can hit it .) (i thinks you can also do this after 5 seconds it does it )

Sat Jun 23, 2007    Reply    New Discussion   

You still didn't mention which language you are coding in.

But basically all you need to do is have a timer counting each second, and as each time the timer fires, take 1 off the time. When the value equals 0 then then stop the timber and enable the button.
-jimmy

In VB.NET

CODE

Timer_Tick
Do Until Count = 0
Count &= -1
Loop
'enable button now
End Timer

Sat Jun 23, 2007    Reply    New Discussion   


Quickly Post to Button With Secconds  w/o signup Share Info about Button With Secconds  using Facebook, Twitter etc. email your friend about Button With Secconds Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

Notepad++ Notepad alternative  Notepad++ Notepad alternative (15) (6) Allot Of Passwords   Allot Of Passwords