BeBoP Posted October 2, 2005 Share Posted October 2, 2005 Is it possible to include two splashtexton commands in one script so they both run at the same time any help appricated. Link to comment Share on other sites More sharing options...
BigDod Posted October 3, 2005 Share Posted October 3, 2005 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 comment Share on other sites More sharing options...
seandisanti Posted October 3, 2005 Share Posted October 3, 2005 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 comment Share on other sites More sharing options...
BigDod Posted October 3, 2005 Share Posted October 3, 2005 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 comment Share on other sites More sharing options...
seandisanti Posted October 3, 2005 Share Posted October 3, 2005 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) Nextyou 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 comment Share on other sites More sharing options...
BigDod Posted October 3, 2005 Share Posted October 3, 2005 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 comment Share on other sites More sharing options...
herewasplato Posted October 3, 2005 Share Posted October 3, 2005 ...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] Link to comment Share on other sites More sharing options...
seandisanti Posted October 3, 2005 Share Posted October 3, 2005 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... Link to comment Share on other sites More sharing options...
BeBoP Posted October 4, 2005 Author Share Posted October 4, 2005 (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 October 4, 2005 by BeBoP 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