Jump to content

Recommended Posts

Posted

I created a progress bar with some help file knowledge. But I need to improve it a nit.

Here is what I have.

$t = 600
        $pb = $t * $d6

        ProgressOn("test ", "Time remaining till 0", "0 percent")

        For $i = 0 To 100 Step 1
            Sleep($pb)
            ProgressSet($i, $i & " percent complete")
        Next
        ProgressSet(100, "Done", "Complete")
        Beep(500, 1000)
        Sleep(600)
        ProgressOff()

Okay now for the silly question. Can I make it so the progress bar is movable. It just sits in the middle of the screen. And wont move until it completes.

Thanks in advance.

w

Posted (edited)

It's the last parameter in the ProgressOn() function, the 'opt' parameter:

ProgressOn ( "title", "maintext" [, "subtext" [, x pos [, y pos [, opt]]]] )

opt[optional] Default is 'always on top/with title'

Add up the following options you want:

1 = borderless, titleless window

2 = Without "always on top" attribute

16 = Window can be moved

Edited by MrMitchell
Posted (edited)

ah okay great. I looked in the help section but didnt see it. Would it be on the wiki instead? Or where can I find more info on the options for future reference?

Thanks for your answer.

edit: never mind. It helps if you read the whole help section.

Cue

:idea:

Edited by cueclub
Posted

another question. Is there a way to change the color of the bar from green to lets say red/blue whichever?

Or is green the standard,

Thanx

Posted

ah ok thanks somdccomputerguy. I had thought to taht, but thought there was somthing else to use for progress bars.

Thanks again.

Cue

Posted

Okay I have another quick progress question.

I have my progress code wrapped in a function assigned to a hotkey.

When I press the hotkey (pause) it pauses as it should and the progress bar does as well, But when I press the pause key again it doesnt do anything. Is there something extra I need to add in there. A separate pause command for the progress bar itself perhaps?

I will post the code if it is needed. Just dont have access to it at the moment.

Thanks

Cue

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
×
×
  • Create New...