Lemures Posted April 22, 2007 Share Posted April 22, 2007 I have a program I am working on. I would like to have a splash screen fade in, hold for a bit, then fade out. However, the script needs to continue running during this time, as I cant wait these few seconds to begin. What do you think would be the easiest way to get this splash screen to run concurrently with the rest of the script? Also, using the following code: Opt("WinTitleMatchMode", 2); Match substring $SplashImage = "Splash.jpg" $SplashX = 974 $SplashY = 210 SplashImageOn("Splash Screen", $SplashImage,$SplashX,$SplashY,@DesktopWidth-$SplashX,@DesktopHeight-$SplashY-30,1) For $i = 0 to 255 step 5 WinSetTrans("Splash Screen", "", $i) Sleep(1) Next Sleep(3000) For $i = 255 to 0 step -5 WinSetTrans("Splash Screen", "", $i) Sleep(1) Next SplashOff() It 'blinks' in the beginning and end. I understand why though, but is there any other, easy way to do this? I'm stuck! Link to comment Share on other sites More sharing options...
Generator Posted April 22, 2007 Share Posted April 22, 2007 I have a program I am working on. I would like to have a splash screen fade in, hold for a bit, then fade out. However, the script needs to continue running during this time, as I cant wait these few seconds to begin. What do you think would be the easiest way to get this splash screen to run concurrently with the rest of the script? Also, using the following code: Opt("WinTitleMatchMode", 2); Match substring $SplashImage = "Splash.jpg" $SplashX = 974 $SplashY = 210 SplashImageOn("Splash Screen", $SplashImage,$SplashX,$SplashY,@DesktopWidth-$SplashX,@DesktopHeight-$SplashY-30,1) For $i = 0 to 255 step 5 WinSetTrans("Splash Screen", "", $i) Sleep(1) Next Sleep(3000) For $i = 255 to 0 step -5 WinSetTrans("Splash Screen", "", $i) Sleep(1) Next SplashOff() It 'blinks' in the beginning and end. I understand why though, but is there any other, easy way to do this? I'm stuck!Make a seperate script for your main func. The old 1 is just for displaying splash screen. Use file install() When you run the new 1, it runs the old 1 and the new 1 will be in process too. FileInstall to temp or somewhere Link to comment Share on other sites More sharing options...
jimmyjmmy Posted April 22, 2007 Share Posted April 22, 2007 I have a program I am working .................!Hi,I ran your codes but I see nothing on my screen. Is there something wrong with my settings?Thanks Link to comment Share on other sites More sharing options...
Generator Posted April 22, 2007 Share Posted April 22, 2007 Hi,I ran your codes but I see nothing on my screen. Is there something wrong with my settings?ThanksObviously you don't have the img splash.jpg. Link to comment Share on other sites More sharing options...
yxrkt Posted April 22, 2007 Share Posted April 22, 2007 Hi,I ran your codes but I see nothing on my screen. Is there something wrong with my settings?Thanksdo you have the Splash.jpg image in your scriptfolder ? Link to comment Share on other sites More sharing options...
Lemures Posted April 22, 2007 Author Share Posted April 22, 2007 I was thinking of having a seperate script run it. Is there any way to use a simple run command to run a .au3 while im testing it? Also, what is the easiest way to have the .exe it extracts and runs delete itself when its done? Link to comment Share on other sites More sharing options...
Generator Posted April 22, 2007 Share Posted April 22, 2007 I was thinking of having a seperate script run it. Is there any way to use a simple run command to run a .au3 while im testing it? Also, what is the easiest way to have the .exe it extracts and runs delete itself when its done?FileInstall("Your source of Splash.exe",@Temp) ;To Temp folder If $ProcessExists=ProcessExists("Splash.exe")=0 Then FileDelete();Delete from the Temp folder I am just giving you some ideas but the code is not like that. Link to comment Share on other sites More sharing options...
Lemures Posted April 22, 2007 Author Share Posted April 22, 2007 I just typed some stuff but then I reread your ProcessExists line. That was a good idea, cant believe I didnt think of that. Thank you! Link to comment Share on other sites More sharing options...
jimmyjmmy Posted April 22, 2007 Share Posted April 22, 2007 Obviously you don't have the img splash.jpg.Thanks, yes after putting an image, it works, very nice. Link to comment Share on other sites More sharing options...
Lemures Posted April 22, 2007 Author Share Posted April 22, 2007 Hmm.. well, any way to get this to not flash? I know WHY its flashing, but i dont see how to start the splash image off at 0 transparency. Perhaps a gui? I'm still not experienced with the GUI's though. 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