NewtonScripter Posted August 22, 2008 Share Posted August 22, 2008 When I call a function, is the splash screen suppose to die? Cuz it is for me. How can i work around that. Without having to pass a "message" to the function to create anoter splash screen. Link to comment Share on other sites More sharing options...
NELyon Posted August 22, 2008 Share Posted August 22, 2008 Can you post your code? Because the Splash should disappear until you call SplashOff(). Link to comment Share on other sites More sharing options...
avery Posted August 22, 2008 Share Posted August 22, 2008 (edited) Not to hijack your thread or anything but I have a related question, please. How do you center the splash image? local $m1 = @DesktopHeight / 2 local $m2 = @DesktopWidth / 2 $destination = "install\dodbanner.jpg" SplashImageOn("Splash Screen", $destination, 520, 62, $m2, $m1, 1) Sleep(3000) SplashOff() I also tried all these and more. $destination = "install\dodbanner.jpg" SplashImageOn("Splash Screen", $destination, 520, 62, $m1, $m2, 1) Sleep(3000) SplashOff() $destination = "install\dodbanner.jpg" SplashImageOn("Splash Screen", $destination, 520, 62, $m1-260, $m2-31, 1) Sleep(3000) SplashOff() $destination = "install\dodbanner.jpg" SplashImageOn("Splash Screen", $destination, 520, 62, $m2-520, $m1-62, 1) Sleep(3000) SplashOff() I honestly feel pretty damn stupid right now. Makes since to me! Edited August 22, 2008 by avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org Link to comment Share on other sites More sharing options...
NewtonScripter Posted August 22, 2008 Author Share Posted August 22, 2008 Can you post your code? Because the Splash should disappear until you call SplashOff(). Here's the loop that deals with the splash screen Local $splittestfiles = StringSplit($testfiles, ";") For $i_countFinished = 0 to $multipliervalue $message = "Wait " & ($multipliervalue - $i_countFinished) & " time(s) for workflow """ & $s_WFname & """ to complete, timeout per job is " & $interval SplashTextOn("Waiting on workflows", $message, 400, 50, -1, 10, 0, "", 10, "") _DebugOut($message) ; copy and paste test files into hotfolder, then wait for it to appear in job manager ; check if finished ; if finished, increment $i_countFinished, else sleep for 1 second and check again _DebugOut("Copy test files into hotfolders") For $index = 1 To $splittestfiles[0] $s_strippedString = StringStripWS($splittestfiles[$index], 1 + 2) $rv = FileExists($s_strippedString) If $rv = 0 Then MsgBox(0, "Error", "Cannot find " & $s_strippedString) Exit EndIf $array = StringRegExp($s_strippedString, ".*\\(.+\.con)",1) If @error == 1 Then FileCopy($s_strippedString, $submissionfolder) Else $destination = $submissionfolder & "\" & $array[0] DirCopy($s_strippedString, $destination) EndIf Next ; wait for job to be finished WaitForJobToBeFinished($i_countFinished, $interval) Next 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