CygnusX1

Progressbar halts my program

4 posts in this topic

#1 ·  Posted (edited)

Hello, 

Hopefully I'm overlooking something simple. I want to have a progressbar run while the other parts of my program runs. 

Start()

Func Start()
    Run(exe)
    WinWait(title)
    WinMove(title, "", 0, 0, 800, 910)
    $hWnd = WinGetHandle(title)
    WinActivate($hWnd)
    Initialize()
    Progress() ;this run but the next functions don't until Progress is finished.
    Export3DS()
    ExportDAE()
    ExportFBX()
    NewToolbar()
    MainMenus()
    Materials()
EndFunc   ;==>Start

Func Progress()
    ProgressOn("Detecting English Words", "Detecting...", "", 850, 25, 18)
    For $i = 1 to 55 step 1
        Sleep(1000)
        ProgressSet($i, $i & "%")
    Next
EndFunc

How does one get a progressbar to show and keep the program running?

Thank you.

Edited by CygnusX1

Cygnus

Share this post


Link to post
Share on other sites



Just a suggestion; unless you know have a good indicator on the progress of your tasks and how to map it to a percentage, it's just as useful to display a "busy/working" indicator.  This example would allow you to create a custom GUI with a MARQUEE progress bar that can sit there and animate while your BG tasks run.

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hey, 

Thanks for your responses. I couldn't get the  AdLibRegister() to work correctly so I'm going for the Marquee. Works great!

Thank you.

Edited by CygnusX1

Cygnus

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