Jump to content

Progress Bar | Help


Go to solution Solved by DW1,

Recommended Posts

Hi, I'm trying to see if it is possible to get a task bar icon with a progress bar

taskbar.jpg

Here what kind of progress bar I am using,

Func Example()
    ; Display a progress bar window.
    ProgressOn("Countdown Timer", "Countdown Timer", "0%",1,1,18)    ; Update the progress value of the progress bar window every second.
    For $i = 1 To 100 Step 1
        Sleep(1000)
        ProgressSet($i, $i & "%")
    Next    ; Set the "subtext" and "maintext" of the progress bar window.
    ProgressSet(100, "Done", "Complete")
    Sleep(5000)
    ; Close the progress window.
    ProgressOff()
EndFunc   ;==>Example

Thank you so much for your help and support!!

online.png?theme=dark profile for Tom on Stack Exchange, a network of free, community-driven Q&A sites 

scientia potentia est

Link to comment
Share on other sites

If you want to just get an static idle icon besides an progress bar, use 

GuiCtrlCreateIcon

and if you want an animated one use 

_GUICtrlButton_SetImageList

Besides, I feel, I could not get exactly what you are asking. Please explain a bit more of what you want to do.

Regards

Edited by PhoenixXL

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

  • 7 years later...

i wanna set icon for my progress bar, how i do it?

for example, it my progress bar

Quote

ProgressOn("Fall Guys: Ultimate Knockout", "Setup", "Connecting to server...")

 For $var1 = 0 To 30
     ProgressSet($var1)
     Sleep(200)
 Next

which and where I insert the command to do this

set icon.png

Link to comment
Share on other sites

1) Get handle of your ProgressOn window by WinGetHandle() and then use GUISetIcon()

2) Instead of ProgressOn() use your own GUICreate() + GUISetIcon() + GUICtrlCreateProgress()

 

ad 1) look here at BugTrack (request: Allow ProgressOn function to return window handle)

https://www.autoitscript.com/trac/autoit/ticket/3641

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...