erezlevi Posted January 14, 2008 Posted January 14, 2008 hi, how can I create a GUI that will show the customer a msgbox that says "Processing please wait..." and a banner that move from right to left until the computer ends the process. if I create a regular msgbox it does not continue to process. please help.
Monamo Posted January 14, 2008 Posted January 14, 2008 hi,how can I create a GUI that will show the customer a msgbox that says "Processing please wait..." and a banner that move from right to left until the computer ends the process. if I create a regular msgbox it does not continue to process.please help.How about using SplashTextOn()? It'll give you a positionable window and you can use whatever processing message you'd like. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]
erezlevi Posted January 14, 2008 Author Posted January 14, 2008 How about using SplashTextOn()? It'll give you a positionable window and you can use whatever processing message you'd like.yes, I just read about it, but will it continue the other processing in the background???
erezlevi Posted January 14, 2008 Author Posted January 14, 2008 yes, I just read about it, but will it continue the other processing in the background??? ok got the solution myself: #include <GUIConstants.au3> GUICreate("My GUI Progressbar",220,100, 100,200) $progressbar1 = GUICtrlCreateProgress (10,10,200,20) GUICtrlSetColor(-1,32250); not working with Windows XP Style $button = GUICtrlCreateButton ("Start",75,70,70,20) GUISetState () $wait = 100 $i=0 Do $msg = GUIGetMsg () if $msg = $button Then for $i=0 to 100 $m = GUIGetMsg () if $m = -3 then ExitLoop GUICtrlSetData ($progressbar1,$i) Sleep($wait) ;; do all the things you want here. Next EndIf Until $msg = $GUI_EVENT_CLOSE Thanks, anyway.
kris06 Posted January 19, 2008 Posted January 19, 2008 ok got the solution myself: #include <GUIConstants.au3> GUICreate("My GUI Progressbar",220,100, 100,200) $progressbar1 = GUICtrlCreateProgress (10,10,200,20) GUICtrlSetColor(-1,32250); not working with Windows XP Style $button = GUICtrlCreateButton ("Start",75,70,70,20) GUISetState () $wait = 100 $i=0 Do $msg = GUIGetMsg () if $msg = $button Then for $i=0 to 100 $m = GUIGetMsg () if $m = -3 then ExitLoop GUICtrlSetData ($progressbar1,$i) Sleep($wait) ;; do all the things you want here. Next EndIf Until $msg = $GUI_EVENT_CLOSE Thanks, anyway. Hi, Have you tried this piece of code for copying a file from one location to another? does it work?
rasim Posted January 19, 2008 Posted January 19, 2008 ok got the solution myself: #include <GUIConstants.au3> GUICreate("My GUI Progressbar",220,100, 100,200) $progressbar1 = GUICtrlCreateProgress (10,10,200,20) GUICtrlSetColor(-1,32250); not working with Windows XP Style $button = GUICtrlCreateButton ("Start",75,70,70,20) GUISetState () $wait = 100 $i=0 Do $msg = GUIGetMsg () if $msg = $button Then for $i=0 to 100 $m = GUIGetMsg () if $m = -3 then ExitLoop GUICtrlSetData ($progressbar1,$i) Sleep($wait) ;; do all the things you want here. Next EndIf Until $msg = $GUI_EVENT_CLOSE Thanks, anyway. One of the more variants #include <GUIConstants.au3> Dim $wait = 100 GUICreate("My GUI Progressbar",220, 100, 100, 200) $progressbar1 = GUICtrlCreateProgress (10,10,200,20) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($progressbar1), "wstr", "", "wstr", "") GUICtrlSetColor(-1,32250); working with Windows XP Style if set classic style with WinAPI :) $button = GUICtrlCreateButton ("Start",75,70,70,20) GUISetState () While 1 $msg = GUIGetMsg () Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $button ShowProgress() EndSwitch WEnd Func ShowProgress() Local $i For $i = 1 to 100 If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit GUICtrlSetData($progressbar1, $i) Sleep($wait) Next Sleep(500) GUICtrlSetData($progressbar1, 0) EndFunc
rasim Posted January 19, 2008 Posted January 19, 2008 Hi, Have you tried this piece of code for copying a file from one location to another? does it work?See example
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