chun914 Posted September 28, 2006 Posted September 28, 2006 I set a always on top GUI that show progress ( program is running ) like below ( code copy from this forum) $jj=0 GUISetState(@SW_DISABLE, $mainwindow) $progressttt = GUICreate("Progress",210,33, 800,600,$WS_POPUP,$WS_EX_TRANSPARENT) $progressbar1 = GUICtrlCreateProgress (2,2,200,20,$PBS_SMOOTH) GUICtrlSetBkColor(-1,0xFFFFFF) GUICtrlSetColor(-1,0xff0000) GUISetState (@SW_SHOW) SetWindowPos($progressttt, $HWND_TOPMOST, 0, 0, 0, 0, BitOR($SWP_NOMOVE,$SWP_NOSIZE)) ;begin of code... IF $a = $b then . . . endif ;when the program finish running SetWindowPos($progressttt, $HWND_NOTOPMOST, 0, 0, 0, 0, BitOR($SWP_NOMOVE,$SWP_NOSIZE)) GUIDelete($progressttt) GUISetState(@SW_SHOW, $mainwindow) GUISetState(@SW_ENABLE, $mainwindow) what i'm now doing is add the following code inside the code. GUICtrlSetData ($progressbar1,$jj) Sleep(20) $jj += 1 if $jj = 100 then $jj = 0 is there any way i can keep the progressbar keep running with using this stupid method ?
chun914 Posted September 28, 2006 Author Posted September 28, 2006 Have look at adlibenable...COOL...thanks.....
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now