Button With Secconds

free web hosting
Free Web Hosting > Computers & Tech > Programming

Button With Secconds

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-) )

Reply

faulty.lee
QUOTE(ikkeugh @ Jun 22 2007, 04:13 AM) *
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-) )


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

Reply

ikkeugh
QUOTE(faulty.lee @ Jun 22 2007, 10:42 AM) *
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

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 )

 

 

 


Reply

Jimmy89
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

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : button, secconds

  1. How To Make A Simple Flash Button
    (1)
  2. Upload Button In Php
    (2)
    Here are some script on upload button in php. I found this one on the searching for upload button
    ------------------------------------------------------- CODE <?
    if(isset($_POST['uploadfile'])){   $picname =
    ($_FILES['upfile']['name']);
      move_uploaded_file($_FILES['upfile']['tmp_name'],
    $_SERVER['DOCUMENT_ROOT'] . "/pictures/" .
    $_FILES['upfile']['name']); echo(&#....
  3. Change Start Button Text
    Be careful (10)
    QUOTE CHANGE START BUTTON TEXT Changing the Start button requires the use of a binary file
    editor (or hex editor) to alter a critical Windows system file. If you kill this file, bad things
    can happen to your system. Stop here in you don't know about backups and registry editing. Also
    please take out life insurance before you start /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> . This method has been successfully tested on Windows 95,
    98, ME, 2000 and XP and therefore should be quite safe. Obviously, I do not accept any....
  4. [help] Navigation Button Problem
    (4)
    This is a html+css template i took off the net for my college end sem project. I wanted to use this
    template for my ASP .NET application. There is a slight problem with the navigation button when
    clicked, please download the attached file and guide me to a solution if you can. Open
    succlogin.html and then navigate through the buttons. The following htmls are linked together:
    succlogin.html succunibase.html succstudbase.html succprof.html accabt.html Also please tell me if
    this template can be used with ASP .NET 2005. Awaiting your replies Thanks in Advance Regards Dh....
  5. Gmail Paper :: Free Physical Copy Of Any Message With The Click Of A Button
    (8)
    Hi all... One new news from Google GMail Team!! GMail Paper Get your
    Physical copy of any message by Mail ( Not eMail /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> ) with the click of a button!! /ohmy.gif"
    style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> Yes its true guys!!
    Its completely FREE only /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> ( Its not 'April Fool' Special Announcement /wink.gif"
    style="vertical-a....
  6. Select All Button
    (5)
    I have an HTML question. I have two boxes on a page and plan to add a few more. The first box
    contains a block of HTML code and a SELECT ALL button at the bottom, using this line of cide: CODE
    <input name="button" type="button"
    onclick="document.form_code.code.select()" value="Select All" /> It
    works fine. My second box has a similar line of code: CODE <input name="button2"
    type="button" onclick="document.form_code.code.select()" value="Select
    All" /> But ....
  7. Paypal Button
    How to add a paypal button?? (8)
    Does anyone know how to add a Paypal button to their site? Thanks!!....
  8. OnMouseOver Button
    (10)
    Hi, this little code is perfect for adding short instructions on a submit button, simply add your
    text to the mouseover event of the button, for example: regards,....
  9. How To Make A Scene Select Button
    Made by: Jordain joyce (0)
    How to make a scene select button. By: Jordain Joyce The scene select button enables whoever is
    watching your movie to navigate more easily through your movie instead of having to go through your
    whole movie to get to the good part of your movie. This is a very useful tool and many people use
    it. If you would like you can also use this code I gave you and use it for your play button as well.
    First of all open up flash and make a rectangle or a circle of what ever you would like. Then make
    it a Button (you can make it a movie clip if you really wanted to like make it l....
  10. Is Button Mashing Wrong?
    (10)
    My boyfriend gets mad because i beat him at all the fighting games. I'm a button masher and he
    says im cheap and that he won't play with me. Hey its not my fault im better right? ;p I'm
    very good with killik and voldo in soul calibur And very good with wink in marvel nemesis ^^ I
    think i could kick most men's butts and that he's just being a sore loser =3 I did get
    blisters on my thumb last week from marvel tho lololol....
  11. Delete Button In Gmail
    reduces one click (19)
    A new feature (and this time I've checked to make sure it's new) has been debuted on the
    GMail service. A separate DELETE button has been added to the button bar resulting in the
    user's saving one click while intending to delete messages / conversations. Ordinarily, the
    option to delete was hidden away in the Action drop-down box resulting in an extra click.
    Knowledgeable Firefox users have for quite some time taken advantage of the GreaseMonkey extension
    coupled with the correct script to customize their displays and add this functionality.....
  12. Sunblind's Free Graphics
    88x31 Button Blanks (9)
    These are just some button blanks I made last year. I had just started making micros, so they're
    not great, but they're here if you want 'em. Tell me if you like them or not, because only
    the graphics and tutorials I post on here that receive good reviews will get included in the
    graphics section of my new site. Each ZIP file contains 6 (or 8) different color variations of the
    button/banner and the fully customizable .psd file. Enjoy! Image Set 88x31a Preview:
    Download Set Image Set 88x31b Preview: Download Set Image Set 88x31c Prev....
  13. Flash Button With Sound
    (9)
    This is a tutorial about adding sound to a button in Flash. 1.Go to menu
    :File\Import\Import to library 2.Select the sound file you want 3.Open the library panel
    (You can also press Ctrl + L) 4.Right-click on the sound you imported 5.Click "Linkage..." from
    the menu 6.Check "Export for ActionScript" & "Export in first frame". 7.Enter a name for sound in
    "Identifier" field (This is the name you will use to address your sound from now on) For example :
    "thesound" 8.Press "OK" 9.Choose an action frame of the movie where your button is in 10.In the
    acti....
  14. Anyone Know Where Is The Post [edit] Button?
    i can't find this button (9)
    could anyone tell me, how to edit back posted message? i can't find any button here??
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> ....
  15. Renaming The Start Button In Windows XP
    (9)
    To rename the start button, you will need a hex editor. My preference is UltraEdit 1. Copy the
    \windows\explore.exe file to a new name (e.g. explorer_1.exe) 2. With the hex editor,
    open that file and go to offset 412b6 3. You will see the word start with blanks between each
    letter 4. Edit it be any 5 characters or less 5. Save the file 6. Boot to DOS 7. Copy
    the existing c:\windows\explorer.exe to explorer.org 8. Copy explorer_1.exe to
    explorer.exe 9. You will also need to replace the explorer.exe in the c:\windows ....
  16. Submit Button Help
    how to save/send data when submitting (12)
    I done a form data that when i click submit ought to be saved on the server/or sent to my email as
    per my choice, but none happens. i did the html form in MS Publisher and the submit button has
    command: .../index_files/--WEBBOT-SELF-- the help says to check if ISP has front page ssl 2.0 (or
    something close). hmm, what do i do?....
  17. How Can I Edit A Post?
    Unable to find any button / link (6)
    Hi ! How can I edit a post once I've dispatched it? In most forums that I know of,
    there's a link or a button that allows me to do so, but try as I might I just can't seem to
    find it here... I've tried switching between the 2 skins available - LITE & AMBIENCE but to no
    avail. The same thing happens in both IE 6 SP2 and Firefox 1.0.6 Could someone post a screenshot
    showing me exactly where this little button is hiding please ? ....
  18. Apple's Multi-button Mouse ... Finally !
    (17)
    Ahh .. well finally after years of patient waiting .. apple is out with the finale .. ( i think ) ..
    there mite be more to come from Apple labs .. but this one really takes the piece ! ... A multi
    button mouse .. yeah me including other mac users would hve been really bored trying to click just 1
    button around all day lol .. well finally i guess we have sumthing new .. /biggrin.gif'
    border='0' style='vertical-align:middle' alt='biggrin.gif' /> Check it on the Apple site ... or
    .. if u guys have quicktime installed .. check the 3d view of the mouse ... >HERE ....
  19. "button-pushing" Website
    The highest form of liberal bias (2)
    /mad.gif' border='0' style='vertical-align:middle' alt='mad.gif' /> ok.... this website got me
    really p/o'd. mebbe Im overeacting, but shouldnt a muslim news site be more..... fair? tell me
    whatcha think of this site. www.muslimwakeup.com My apologies for including politics....
  20. Visual Basic: Change Your Start Button Text! (XP)
    Windows XP ONLY (16)
    Personally, I love this program I made for myself. What the following code will allow you to do is
    change the text of your start button (Duh). You can make it whatever you want, your name, a hobby,
    or even do some extra programming and get it to randomly cycle through captions every 30 seconds or
    so /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> . Here is all the code
    you'll need: CODE Private Const WM_SETTEXT = &HC Private Const WM_GETTEXT = &HD Private
    Declare Function FindWindow Lib "user32" Alias "FindWindowA" ....
  21. Question On Buttons.
    A question on button animation. (2)
    Okay, So I'm alright in flash as it is. But I was curious how you made a button move... like a
    mouse over effect for instance where something robotic pops out of a button on mouse over. Any
    takers?....
  22. Hosted By Astahost Button
    A link back button to place on your site (2)
    This is a nice little button to place on your site to show your appreciation to astahost for hosting
    your site. It’s a modification to the one on your cpanel.
    http://www.caribcirc.astahost.com/images/astahost.gif ....
  23. Play Buttons
    ActionScripting for a play button. (4)
    hey. ive been expermenting with flash again lately. and i was wondering if anyone knew the simple
    actionscript for a play button. i have a stop action on the frame, and i know how to make buttons,
    so this is my next step in flash. thanks, SPH....
  24. [python]got A Problem In My Little Program
    No reaction when button was pressed (1)
    I am a newbie in Python. After read some parts of 《OReilly -
    ProgrammingPython2ndEd.chm》, I try to write a small problem as following. But it is no
    reaction when I press the button. Does anyone can tell me why? CODE from Tkinter import * #
    get widget classes class Inputer(Frame): # subclass our GUI def __init__(self,
    parent=None): # constructor method  Frame.__init__(self, parent)
     self.pack()  ent = Entry(self)  ent.insert(0, 'Type words here')
    # set text  ent.pack(side=LEFT....
  25. What Happend With Edit Button?
    ... I just don't get it... :| (16)
    Hi... /mellow.gif' border='0' style='vertical-align:middle' alt='mellow.gif' /> isn't this
    strange, that I can't see "edit" button under my posts? something changed? I had to add post in
    FTP topic since I wasn't able to see "edit"... I'm using FireFox, but this shouldn't
    make any diference, yesterday before I get my hosting package, everything was as usual... do you
    have any idea what is wrong? maybe I skiped some news? And I'm placing there links to some
    screenshots...: so... there is proof I'm logged in as Giniu... : and there is m....
  26. Help With Interactive Button
    someone know how to make such a button.. (7)
    Does anybody know how to make a button that is interactive (such one that react when the mouse goes
    over it). Please help me.....
  27. A Button That Senses The Mouse
    FLASH TUTORIAL : MOUSE ROLLOVER EFFECTS (2)
    Creating a button that senses the mouse and then expands. Requirement: Flash MX Step 1: Open a
    new document. In the actions for frame 1 of layer name layer 1 type: menutriggerdist=150;
    menumaxscale=300; menumultiplier=1.5; This control how and when the mouse interacts with button.
    Once you have completed all the steps, change them around and see how each one changes the effect.
    Step 2: Cntl+f8 (Insert --> New Symbol) Click on new movie click, call it Ibutton. In the
    frist frame create your image or whatever you want the mouse to interact with , to make it....
  28. Button Positions
    where do you like em' (12)
    So what do you all like? Personnaly, I like buttons at the top that way they dont interfere with
    the rest of tha page while im trying to read especially if they6 are flash buttons, those are just
    annyong in designs. /dry.gif' border='0' style='vertical-align:middle' alt='dry.gif' /> ....
  29. Disabled The Shutdown Button?
    help urgent (8)
    anyone knows how to disable the keyboard shutdown button? via registry?....
  30. How To Change Your Start Button In Xp
    (6)
    YOU NEED A TOOL CALLED RESOURCE HACKER CODE
    http://libertyboy.free.fr/programs/system/reshack.zip A. Bypass WFP: 1. In Windows Explorer,
    click Tools, Folder Options, then View. Uncheck Hide protected operating system files and check Show
    hidden files and folders. 2. There is a file named filelist.xml in
    \windows\system32\Restore. Right click the file, then click Properties, and uncheck
    Read-only. Open filelist.xml in Notepad (not in MS Word or any other text editor!!!),
    and add the line shown in bold below, then save the file and ....

    1. Looking for button, secconds

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for button, secconds
advertisement




Button With Secconds



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE