Sign in to follow this  
Followers 0
Lemures

Run splash screen concurrently?

10 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Hi,

I ran your codes but I see nothing on my screen. Is there something wrong with my settings?

Thanks

Obviously you don't have the img splash.jpg.

Share this post


Link to post
Share on other sites

Hi,

I ran your codes but I see nothing on my screen. Is there something wrong with my settings?

Thanks

do you have the Splash.jpg image in your scriptfolder ?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Obviously you don't have the img splash.jpg.

Thanks, yes after putting an image, it works, very nice.

Share this post


Link to post
Share on other sites

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.

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