HockeyFan Posted July 19, 2005 Share Posted July 19, 2005 Can someone show me how to write a script that displays a message with a two minute count down??? This is what I have so far...and it doesn't work: $message = "" SplashTextOn("Important Message!", "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $message & "minutes.", 700, 450, -1, -1, 0, "", 14, 400) For $x = 0 to 120 $message = $message & $x ControlSetText("Important Message!", "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $message & "minutes.", "Static1", $message) sleep(1000) Next I just want to display a text message and have it count down from 2 minutes and then the window closes. Link to comment Share on other sites More sharing options...
DaLiMan Posted July 19, 2005 Share Posted July 19, 2005 Changed the minutes to secs for testing but I think you'll get the idea.... $MyTime = "5" $message = "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $MyTime & " seconds." $a = SplashTextOn("Important Message!", $message, 700, 450, -1, -1, 0, "", 14, 400) For $x = 0 to 4 sleep(1000) $MyTime = $MyTime - 1 $message = "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $MyTime & " seconds." ControlSetText("Important Message!", "", "Static1", $message) Next Exit Link to comment Share on other sites More sharing options...
HockeyFan Posted July 19, 2005 Author Share Posted July 19, 2005 Changed the minutes to secs for testing but I think you'll get the idea.... $MyTime = "5" $message = "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $MyTime & " seconds." $a = SplashTextOn("Important Message!", $message, 700, 450, -1, -1, 0, "", 14, 400) For $x = 0 to 4 sleep(1000) $MyTime = $MyTime - 1 $message = "" & @CR & "" & @CR & "blah, blah, blah." & @CR & "" & @CR & "This message will close in " & $MyTime & " seconds." ControlSetText("Important Message!", "", "Static1", $message) Next Exit<{POST_SNAPBACK}>AWESOME!!!! That is exactly what I needed. Thank you SO MUCH!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now