CygnusX1 Posted December 15, 2016 Posted December 15, 2016 (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 December 15, 2016 by CygnusX1 Cygnus
Developers Jos Posted December 15, 2016 Developers Posted December 15, 2016 Use an AdLibRegister() func to call the set progress bar logic each second. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
spudw2k Posted December 15, 2016 Posted December 15, 2016 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. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
CygnusX1 Posted December 16, 2016 Author Posted December 16, 2016 (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 December 16, 2016 by CygnusX1 Cygnus
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