roadrunner Posted February 25, 2004 Share Posted February 25, 2004 hi, it's a simple question, all i want to do is display a box with a message while the scrip continue to run i.e display text box run program close text box i have tried SplashTextOn but i will not keep on the screen any idears? Link to comment Share on other sites More sharing options...
scriptkitty Posted February 25, 2004 Share Posted February 25, 2004 Sounds like you are running an external program maybe? if so then use: SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24) runwait("yourprogram.exe") or test out this if not. I like small displays ToolTip("Hey My program is running", 0, 0) for $i=1 to 10 sleep(1000) next ; or anything else you want to do. if you runwait, the script will keep it displayed until the program exits, ot you can use a while statement. I can keep ToolTip on top of even DirectX programs. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
roadrunner Posted February 25, 2004 Author Share Posted February 25, 2004 after i put splashtexton into the scripe, winwait active(homeworld2 v1.1") does not become active so the send("{enter}) command does not work. The splashtexton has got focus and will not realease it. any more idears? SplashTextOn("Title", "system update.", -1, -1, -1, -1, 4, "", 24) runwait ($drive &"\update_en_10_11.exe") ;sleep(5000) progress() WinWaitActive("Homeworld2 v1.1") Send("{ENTER}") progress() WinWaitActive("Homeworld2 Patch 1.0 to 1.1") Send("!n") WinWaitActive("Homeworld2 Patch 1.0 to 1.1") Send("!n") WinWaitActive("Homeworld2 Patch 1.0 to 1.1") Send("!n") WinWaitActive("Homeworld2 Patch 1.0 to 1.1") Send("!n") progress() WinWaitclose("Homeworld2 v1.1") SplashOff() Link to comment Share on other sites More sharing options...
scriptkitty Posted February 25, 2004 Share Posted February 25, 2004 (edited) Maybe something like this? Winactivate("Homeworld") ToolTip ( "system update",0,0 ) RunWait ($drive &"\update_en_10_11.exe") WinWaitActive("Homeworld2 v1.1") Send("{ENTER}") For $i=1 To 4 ToolTip ( "system update step "&$i+1,0,0 ) WinWaitActive("Homeworld2 Patch 1.0 to 1.1") Send("!n") sleep(500) Next WinWaitClose("Homeworld2 v1.1") Edited February 25, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
trids Posted February 26, 2004 Share Posted February 26, 2004 does not become active so the send("{enter}) command does not work.The splashtexton has got focus and will not realease it.Just a general tip I keep rediscovering .. the Control* functions (eg: ControlSend, ControlSetText, ControlCommand etc .. ) don't need the window to have focus 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