Sign in to follow this  
Followers 0
HockeyFan

SplashTextOn Message

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Changed the minutes to secs for testing but I think you'll get the idea....  :evil:

$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. :D

Thank you SO MUCH!!! :)

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