Sign in to follow this  
Followers 0
AngelSL

Nonending Progress Bar

13 posts in this topic

#1 ·  Posted (edited)

How do I make a non-ending progress bar?

EG. <the top>

Posted Image

Edited by AngelSL

Share this post


Link to post
Share on other sites

I'm not sure but what are the little two goat things at the bottom of the screenshot?

Share this post


Link to post
Share on other sites

Desktop mate.

Share this post


Link to post
Share on other sites

ah, i see. I think i've seen it, OHH, i think i have it in autoit 123, let me check. UGH never mind

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

How do I increase the erm.. length of the flow?

Share this post


Link to post
Share on other sites

I mean like increase the length of the green flowing progress bar thingabob whatever its called.

Share this post


Link to post
Share on other sites

Thank you. Greatly appreciated. :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0