Jump to content

Progress Bar


Recommended Posts

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

Link to comment
Share on other sites

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

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

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

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