Jump to content

Nonending Progress Bar


AngelSL
 Share

Recommended Posts

How do I make a non-ending progress bar?

Const $PBS_MARQUEE = 0x8

$Progress1 = GUICtrlCreateProgress(144, 32, 150, 17, BitOR($PBS_MARQUEE,$WS_BORDER))

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Const $PBS_MARQUEE = 0x8

$Progress1 = GUICtrlCreateProgress(144, 32, 150, 17, BitOR($PBS_MARQUEE,$WS_BORDER))

In more detail:
Const $PBS_MARQUEE = 0x8

GuiCreate('', 700, 100)

$Progress1 = GUICtrlCreateProgress(50, 10, 600, 80, $PBS_MARQUEE)

GuiSetState() 

AdLibEnable('_Progress', 30);This number sets the speed of the progress

While 1 
    Switch GuiGetMsg() 
        Case -3;Same as $GUI_EVENT_CLOSE
            Exit 
            
    EndSwitch 
WEnd

Func _Progress() 
    GuiCtrlSetData($Progress1, '')
EndFunc
Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

The helpfiles don't show anythin with 0x8. Care to explain?

Piano_Man's script demonstrates how to do what you want. The progress bar has to have a style called $PBS_MARQEE which is defined as the value 0x8. $PBS_MARQUEE isn't in the help file ASAIK, and neither is it in guiconstants.au3 so you need to either include the line

Const $PBS_MARQUEE = 0x8

as Piano_Man did, or just use the value 0x8 in the style parameter when you create the progress bar.

In case I misunderstood your question, 0x8 means hex value 8. Eg 0x1A is 1A in hex which is 26 in decimal. 0x8 is actually 8 in decimal but it's just a convention that these constants have hexadecimal values. This is partly because it makes it easier in various situations. For example, values are often given which are powers of 2 because they need to be combined. So if $A = 0x100 and $B = 0x10 and $C = 0x1 then it is easy to tell that 0x11 includes $A and $B but not $C.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

  • 3 weeks later...

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