Jump to content

make a countdown


Recommended Posts

i need to make a msg box countdown

this is what i got so far

is it possible to have the counter and the input box running at the same time? then i could just put a 10 second timout on the input box and it would look real nice

if 1=1 Then
msgbox(0,"1",1,1,)
msgbox(0,"2",2,1,)
msgbox(0,"3",3,1,)
msgbox(0,"4",4,1,)
msgbox(0,"5",5,1,)
msgbox(0,"6",6,1,)
msgbox(0,"7",7,1,)
msgbox(0,"8",8,1,)
msgbox(0,"9",9,1,)
msgbox(0,"10",10,1,)
EndIf

$hh = 0
$answer = InputBox("Question", "favourite animal", "10 second count", "", -1, -1, 400,400)
If $answer = "whale" then 
   $hh = 1 
Else 
   $hh = 2
EndIf

if $hh = 1 then 
   MouseClick("1",800,600,10,0)
EndIf
if $hh = 2 Then
   mouseclick("1",11,11,10,0)
   EndIf
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...