DaLiMan Posted August 6, 2004 Share Posted August 6, 2004 I know it's not possible to have 2 Splash-screens opened at once in the same script. But I was wondering if someone already has a nice workaround for this by for example creating a second script for the second Splash and then starting and exiting this script by the first one? Or does anyone have a nice idea of putting this together? Link to comment Share on other sites More sharing options...
CyberSlug Posted August 6, 2004 Share Posted August 6, 2004 You could also use the beta versions of AutoIt that include GUI support. Create a GUI window for one of the splash screens..... Might post an implementation if I get time... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
DaLiMan Posted August 6, 2004 Author Share Posted August 6, 2004 Nice idea, didn't think of that. But how to get the GUI to be always on top and not disturbing the rest of the process? Link to comment Share on other sites More sharing options...
DaLiMan Posted August 6, 2004 Author Share Posted August 6, 2004 Found a little option like this: Code1IniWrite("P:\Splash.ini", "Splash", "Running", "Y") SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24) Run("P:\Test\TestScripts\Splash2.exe") Sleep(3000) IniWrite("P:\Splash.ini", "Splash", "Running", "N") SplashOff() Code2Dim $Run = "Y" While $Run = "Y" $Run = IniRead("P:\Splash.ini", "Splash", "Running", "") SplashImageOn("SpIm", "C:\Solar.bmp", "50", "50", "10", "10") Wend Not very nice, but useable. Link to comment Share on other sites More sharing options...
ezzetabi Posted August 6, 2004 Share Posted August 6, 2004 What about using a external compiled Autoit script that only shows Splashscreens? You file install them as many time you need. Link to comment Share on other sites More sharing options...
DaLiMan Posted August 6, 2004 Author Share Posted August 6, 2004 Sorry, second code should be: Code2Dim $Run = "Y" SplashImageOn("SpIm", "C:\Solar.bmp", "82", "76", "100", "-1") While $Run = "Y" $Run = IniRead("P:\Splash.ini", "Splash", "Running", "Y") Wend Exit Otherwise it's flashing all the time.... :"> Link to comment Share on other sites More sharing options...
pekster Posted August 6, 2004 Share Posted August 6, 2004 What about using a external compiled Autoit script that only shows Splashscreens? You file install them as many time you need. <{POST_SNAPBACK}>It might be eaisier to use command line options so you don't need to bother with installed files, cleanup, etc. Just have the script call itself (a 2nd instance) with special paramaters so that it displays a specific splash screen instead of the "main" body of the script. [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. Link to comment Share on other sites More sharing options...
DaLiMan Posted August 6, 2004 Author Share Posted August 6, 2004 Just have the script call itself (a 2nd instance) with special paramaters so that it displays a specific splash screen instead of the "main" body of the script.Sounds nice, but it's a bit to complicated for me because I haven't got a clue of how to accomplish that.I guess I'm not that good a coder. Link to comment Share on other sites More sharing options...
pekster Posted August 6, 2004 Share Posted August 6, 2004 Sounds nice, but it's a bit to complicated for me because I haven't got a clue of how to accomplish that. I guess I'm not that good a coder. <{POST_SNAPBACK}>I was thinking something like this: If $CmdLine[0] = 3 AND $CmdLine[1] = "Splashscreen" Then ;do our 2nd instance of the splashscreen, pause for 2 secs, then exit SplashTextOn($CmdLine[2], $CmdLine[3], 200, 200) Sleep(2000) Exit EndIf ;otherwise, run the "main" script SplashTextOn("Information", "Press alt-q to quit" & @LF & _ "Press alt-1 for the first message" & @LF & _ "Press alt-2 for the second message") HotKeySet("!q", "quit") HotKeySet("!1", "first") HotKeySet("!2", "second") While 1 Sleep(100) WEnd Func quit() Exit EndFunc Func first() Run(@ScriptFullPath & ' Splashscreen "First message" ' & _ '"This is the first message"') EndFunc Func second() Run(@ScriptFullPath & ' Splashscreen "Second message" ' & _ '"This is the second message"') EndFunc I believe you need to compile this code before it will work. [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. Link to comment Share on other sites More sharing options...
ezzetabi Posted August 6, 2004 Share Posted August 6, 2004 It might be eaisier to use command line options so you don't need to bother with installed files, cleanup, etc. Just have the script call itself (a 2nd instance) with special paramaters so that it displays a specific splash screen instead of the "main" body of the script. <{POST_SNAPBACK}>Very nice idea... And also easy to script. Very good! Edit: Scrolled the page... And read: Sounds nice, but it's a bit to complicated for me because I haven't got a clue of how to accomplish that. I guess I'm not that good a coder. Well. Thats why the forum is there, no? 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