Hi all. I am writing another script.
In this one, I want to display to the users running it, a status window showing the completion of each step. I have something that works, but it seems a little awkward. Here's what I have.
Code:
Gui, +ToolWindow
Gui, -Theme
Gui, +AlwaysOnTop
Gui, Font, S10 CDefault, Verdana
Gui, Add, Text, x26 y7 w130 h20 , Doing Step 1 . . .
Gui, Add, Text, x26 y37 w130 h20 ,
Gui, Add, Text, x26 y67 w130 h20 ,
Gui, Add, Text, x26 y97 w160 h20 ,
Gui, Add, Text, x26 y127 w130 h20 ,
Gui, Add, Text, x26 y157 w150 h20 ,
Gui, Add, Text, x26 y187 w60 h20 ,
Gui, Show,, File Proccessing
RunWait osql -U <user> -P <pass> -i '"%A_Temp%\script.sql'" -S MACHINE1 -d SERVERA ,,Hide
Gui, Destroy
Gui, +ToolWindow
Gui, -Theme
Gui, +AlwaysOnTop
Gui, Font, S10 CDefault, Verdana
Gui, Add, Text, x26 y7 w130 h20 , Doing Step 1 . . .
Gui, Add, Text, x26 y37 w130 h20 , Doing Step 2 . . .
Gui, Add, Text, x26 y67 w130 h20 ,
Gui, Add, Text, x26 y97 w160 h20 ,
Gui, Add, Text, x26 y127 w130 h20 ,
Gui, Add, Text, x26 y157 w150 h20 ,
Gui, Add, Text, x26 y187 w60 h20 ,
Gui, Show,, File Proccessing
RunWait osql -U <user> -P <pass> -i '"%A_Temp%\script.sql'" -S MACHINE2 -d SERVERB ,,Hide
etc ...
Is this the best way to do this? Or is there a better way?