YpR^ Posted August 14, 2004 Posted August 14, 2004 Well... i've made a splashtext screen... which sleep for some seconds.... is it possible to make a "skip-splash-screen"-button ? So u can skip the splash if u've read it before
pekster Posted August 14, 2004 Posted August 14, 2004 (edited) How about a hotkey that would trigger the end of a loop that waits? Global $continue SplashTextOn("SplashText", "Some text, blah blah blah." & @LF&_ "Press alt-q to skip this screen") HotKeySet("!q", "NoWait") For $continue = 0 To 15 Sleep(1000) Next SplashOff() HotKey("!q");remove the hotkey. MsgBox(0, "Rest of script", "The rest of your script code would go here.") Func NoWait() $continue = 16 EndFunc Just so you know, $continue needs to be global so that NoWait() has access to that variable. Edited August 14, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
YpR^ Posted August 14, 2004 Author Posted August 14, 2004 (edited) Global $continue SplashTextOn("SplashText", "Some text, blah blah blah." & @LF&_ "Press alt-q to skip this screen") HotKeySet("!q", "NoWait") For $continue = 0 To 15 Sleep(1000) Next SplashOff() HotKey("!q");remove the hotkey. <---- i get UNKNOWN function here MsgBox(0, "Rest of script", "The rest of your script code would go here.") Func NoWait() $continue = 16 EndFunc /Edit.. never mind.. i've corrected it Edited August 14, 2004 by YpR^
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