I programed a script that uses Progress.
l also use two 'panels' built with Gui 1:Add.. and Gui 2:Add
Now, I wanted to make the progress vertical and found out that the only way to do that is by using 'Gui, Add, Progress, Vertical -Smooth w20 h300 cDefault vMyProgress..''
Well, I did a test script that works fine, but when I embed it in my main script, I get no display of that vertical progress bar.
The test script:
Code: Select all
#Persistent
#SingleInstance force
fill:=0
Gui, Add, Progress, Vertical -Smooth w20 h300 cDefault vMyProgress
loop, 11
{
GuiControl,, MyProgress, %fill%
Gui Show
fill:=fill+10
sleep, 150
}
sleep, 5000
progress, On ==>> Gui, Add, Progress, Vertical -Smooth w20 h300 cDefault vMyProgress
progress, %shrink_Value%,,, Reduction amount: %shrink_Value%`%, ==>> GuiControl,, MyProgress, %shrink_Value%`%
progress, Show ==>> GuiControl, Show, MyProgress
progress, off ==>> GuiControl, Hide, MyProgress or GuiControl, Delete, MyProgress
What is wrong? why it doesn't display? what I am doing wrong?
James