Sign in to follow this  
Followers 0
roadrunner

Text Box

5 posts in this topic

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? :whistle:

Share this post


Link to post
Share on other sites



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

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

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

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