Jump to content

is there a style i can use on a progress dialog to show partial full...


supadodger
 Share

Recommended Posts

Hello supadodger,

There are alot of different ways to create an active Progress Meter, It more depends on what your trying to accomplish.

Here is a basic example:

HotKeySet("+!z", "Stop")

Local $stop = 0
ProgressOn("Activity Meter", "Press 'Shit+Alt+z' to Stop", "Doing Stuff")
For $i = 0 to 100 step 10
    If $i = 100 Then
        ProgressSet( $i,"Doing Stuff")
        Sleep(100)
        $i = 0
    EndIf
    sleep(100)
    ProgressSet( $i,"Doing Stuff")
    If $stop Then $i =100
Next

ProgressSet(100 , "Done", "Complete")
sleep(1000)
ProgressOff()

Func Stop()
    $stop = 1
EndFunc ;==>Stop()

Its a bit rudimentary, but I hope it gives you an idea in the general direction.

Realm

Edit: I do believe there are alot of other examples under keyword 'marque'

Edited by Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

You could use something like this:

Local $PBMarquee = GUICtrlCreateProgress(20, 140, 180, 20, $PBS_MARQUEE)
    Local $hPBMarquee = GUICtrlGetHandle($PBMarquee)
    _SendMessage($hPBMarquee, $PBM_SETMARQUEE, True, 20) ; final parameter is update time in ms

Add this to a GUI and it will give you a scrolling marquee style progress bar that will auto-update.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

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...