Jump to content
Sign in to follow this  

Auto progress GUI

Recommended Posts


I set a always on top GUI that show progress ( program is running ) like below

( code copy from this forum)


                GUISetState(@SW_DISABLE, $mainwindow)
    $progressttt = GUICreate("Progress",210,33, 800,600,$WS_POPUP,$WS_EX_TRANSPARENT)
    $progressbar1 = GUICtrlCreateProgress (2,2,200,20,$PBS_SMOOTH)
    GUISetState (@SW_SHOW)
    SetWindowPos($progressttt, $HWND_TOPMOST, 0, 0, 0, 0, BitOR($SWP_NOMOVE,$SWP_NOSIZE))   

        ;begin of code...

          IF $a = $b then

       ;when the program finish running

    SetWindowPos($progressttt, $HWND_NOTOPMOST, 0, 0, 0, 0, BitOR($SWP_NOMOVE,$SWP_NOSIZE))
    GUISetState(@SW_SHOW, $mainwindow)
    GUISetState(@SW_ENABLE, $mainwindow)

what i'm now doing is add the following code inside the code.

GUICtrlSetData ($progressbar1,$jj)
$jj += 1
if $jj = 100 then $jj = 0

is there any way i can keep the progressbar keep running with using this stupid method ?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.