Jump to content

SplashTextOn need help


Recommended Posts

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.


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

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
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


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

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...
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.


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

Link to post
Share on other sites

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...