mcintoow Posted March 24, 2014 Share Posted March 24, 2014 (edited) Hi there - this is a first post for me, hopefully this is the correct location... Trying to display a Please Wait message while DirGetSize completes. Below is what I have, bu the ControlSetText window does not close. Any help would be appreciated. MsgBox(0, "", "Click OK to calculate the size of your H: drive. The process may take a few minutes to complete.") SplashTextOn("Please wait", "Please wait while the size of your H: drive is being determined. This may take a few minutes.", 480, 200, -1, -1, 4, "", 30) $vSize = DirGetSize("h:\temp") do ControlSetText("Please wait", "", "Static1","Please wait while the size of your H: drive is being determined. This may take a few minutes.") sleep(10) Until not $vSize <> 0 Edited March 24, 2014 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 24, 2014 Moderators Share Posted March 24, 2014 (edited) mcintoow,As JohnOne has pointed out below, you have already been told where and how to post. Please do not make the same mistake a third time. M23Edit: Completely rewritten in view of info below - thanks JohnOne. Edited March 24, 2014 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted March 24, 2014 Share Posted March 24, 2014 Hi there - this is a first post for me Well it isn't is it, >you have a post where people helped you and in return you completely ignored them. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
mcintoow Posted March 24, 2014 Author Share Posted March 24, 2014 Oops, sorry. I'll have a look at my first post, which I completely forgot about, and try to find the correct location to post. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 24, 2014 Moderators Share Posted March 24, 2014 mcintoow, try to find the correct location to postBoth of your threads are now in the correct place - General Help and Support. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
mcintoow Posted March 24, 2014 Author Share Posted March 24, 2014 Found a work around.... MsgBox(0, "", "Click OK to calculate the size of your H: drive. The process may take a few minutes to complete.") SplashTextOn("Please wait", "Please wait while the size of your H: drive is being determined. This may take a few minutes.", 480, 200, -1, 40, 4, "", 30) $vSize = 0 $vSize = DirGetSize("h:\temp") do ControlSetText("Please wait", "", "Static1","Please wait while the size of your H: drive is being determined. This may take a few minutes.") $vSize2 = $vSize sleep(1) Until $vSize = $vSize2 MsgBox(1, "", "The total size of your H: drive is " & round($vSize / 1024 /1024 /1024,2) & " GB. Click OK to run a detailed report on your H: drive usage or cancel to end this process.") Link to comment Share on other sites More sharing options...
JohnOne Posted March 24, 2014 Share Posted March 24, 2014 Great stuff, usually happens just after asking a question. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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