kwh3856
asked on
How to you post multiple messages in the same MessageBox in AutoIt
I want to post a status message in a single box as status changes throughout the process of my code. Here is an example
MsgBox(48, "DB Connect", "Connecting to DB 1", 2)
MsgBox(48, "DB Connect", "Connect to DB 2", 3)
MsgBox(48, "DB Connect", "Connect to DB 3", 4)
MsgBox(48, "DB Connect", "Successfully Connect to all DB", 3)
This produces 4 different messages boxes and an OK option in each one. I would like to create a single box. Then print the message "Connecting to DB 1", after my process completes and goes on to the next one, in the same message box just on the line below, I want to say "Connecting to DB 2", when task completes, I want to say "Connecting to DB 3" on the next line below. Next I will show "Successfully connected to all DB's". I do not really need an OK option at all. I just want to know that I successfully executed the task. The task may not be connecting to a database but something completely different. I just want to be able to show progress with status messages in one box. Does anyone have any ideas how to complete this task. Any help is greatly appreciated.
Thanks
MsgBox(48, "DB Connect", "Connecting to DB 1", 2)
MsgBox(48, "DB Connect", "Connect to DB 2", 3)
MsgBox(48, "DB Connect", "Connect to DB 3", 4)
MsgBox(48, "DB Connect", "Successfully Connect to all DB", 3)
This produces 4 different messages boxes and an OK option in each one. I would like to create a single box. Then print the message "Connecting to DB 1", after my process completes and goes on to the next one, in the same message box just on the line below, I want to say "Connecting to DB 2", when task completes, I want to say "Connecting to DB 3" on the next line below. Next I will show "Successfully connected to all DB's". I do not really need an OK option at all. I just want to know that I successfully executed the task. The task may not be connecting to a database but something completely different. I just want to be able to show progress with status messages in one box. Does anyone have any ideas how to complete this task. Any help is greatly appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was exactly what I needed. Thanks.
ASKER
ProgressOn("DB Connect", "Obtaining Data from System", "0%")
; Update the progress value of the progress bar window every second.
For $i = 10 To 100 Step 10
Sleep(1000)
ProgressSet($i, $i & "%")
Next
; Set the "subtext" and "maintext" of the progress bar window.
ProgressSet(100, "Done", "Data Ready To Send")
Sleep(5000)
; Close the progress window.
ProgressOff()