Sign in to follow this  
Followers 0
BeBoP

SplashTextOn need help

9 posts in this topic

Is it possible to include two splashtexton commands in one script so they both run at the same time any help appricated.

Share this post


Link to post
Share on other sites



Is it possible to include two splashtexton commands in one script so they both run at the same time any help appricated.

In the help file example there are two SplashTextOn commands which run one after the other. I do not know if the can run at exactly the same time, try it and see.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

In the help file example there are two SplashTextOn commands which run one after the other. I do not know if the can run at exactly the same time, try it and see.

doesn't look like it works even though it seems like it should. i used this code

$message = ""
SplashTextOn("TitleFoo2", $message, -1, -1, 0, 0, 4, "")
SplashTextOn("TitleFoo", $message, -1, -1, 10, 10, 4, "")

For $x = 1 to 20
    $message = $message & $x & @LF
    ControlSetText("TitleFoo2", "", "Static1", $message)
    ControlSetText("TitleFoo", "", "Static1", $message)
    sleep(100)
Next

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

I used this

$message = ""
SplashTextOn("Title1", $message, -1, -1, 0, 0, 4, "")
For $x = 1 to 20
$message = $message & $x & @LF
ControlSetText("Title1", "", "Static1", $message)
sleep(100)
Next

$message = ""
SplashTextOn("Title2", $message, -1, -1, 0, 0, 4, "")
For $x = 20 to 40
$message = $message & $x & @LF
ControlSetText("Title2", "", "Static1", $message)
sleep(100)
Next


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I used this

$message = ""
SplashTextOn("Title1", $message, -1, -1, 0, 0, 4, "")
For $x = 1 to 20
$message = $message & $x & @LF
ControlSetText("Title1", "", "Static1", $message)
sleep(100)
Next

$message = ""
SplashTextOn("Title2", $message, -1, -1, 0, 0, 4, "")
For $x = 20 to 40
$message = $message & $x & @LF
ControlSetText("Title2", "", "Static1", $message)
sleep(100)
Next
you didn't say if it worked or not, but because the two loops don't run at the same time, the 2 splash windows shouldn't be displayed the same time...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

you didn't say if it worked or not, but because the two loops don't run at the same time, the 2 splash windows shouldn't be displayed the same time...

As I said in my original post they run one after another.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

...even though it seems like it should.

the help file states:

Only one SplashImage/Text window is allowed at one time.

I would think that the second one would just reset the first.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

the help file states:

Only one SplashImage/Text window is allowed at one time.

I would think that the second one would just reset the first.

wouldn't reset if they have diff titles... but the one at a time definitely holds true though...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Well I found one way wich is to run two seperate scripts (not to #include either one ) just run one script throught the other. Altho this enables you to run two of them at the same time there are some conflicts for example. Splash 1 and Splash 2 will work at the same time depending on the order thier executed if you execute Splash 1 then Slpash 2 then thier going to work fine if the order is wrong for example Splash 2 then splash 1, Splash 1 will Display its information and Splash 2 information. Now im not sure wich one should be splash 1 and wich one should be slash 2 but i got my script to run porperly altho sometimes there still seems to be a problem when the splashes go out of controll and cover the whole scree :S i added a reload function for that ;P. (The splash 1/splash 2 probelm exists only when the script gets the information over and over in the case of my script it gets the name of the song that is being played in winamp) and now to confuse you some more heres a script that makes it work (sorry i borrowed bigdogs example somewhat)

the name of this script doesnt realy matter but its easier if you call it splash1

run('splash2.exe')
; Note You have to complie Splash2;
$message = ""
SplashTextOn("Title1", $message, -1, -1, 0, 0, 4, "")
For $x = 20 to 40
$message = $message & $x & @LF
ControlSetText("Title1", "", "Static1", $message)
sleep(100)
Next

the title for the second script should be splash2.au3 and you should complie it so that it can be run by the first script.

$message = ""
SplashTextOn("Title2", $message, -1, -1, 700, 0, 4, "")
For $x = 1 to 20
$message = $message & $x & @LF
ControlSetText("Title2", "", "Static1", $message)
sleep(100)
Next
Edited by BeBoP

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