403forbidden Posted February 13, 2009 Share Posted February 13, 2009 ...I have a program that i wrote in auto it. It installs programs automatically using au3recorder. I have an option to extract the installers that i include with the program once it is compiled, and have a progress bar to show the, well, progress of the extraction. I can't figure out how to make the progress bar be smooth. Currently, i do the FileInstall command to extract the installer, but i can't set data to the progress bar while the installer is extracting. What i am doing right now to make the progress bar appear as smooth as possible, is getting the size of the file that my program is going to extract, and use that to make the progress bar go to 50% at a rate proportional to the size of the file, and then i extract the file. Then i use the same command to have the progress bar go the rest of the way, from 50% to 100%. The problem is that at 50%, it freezes because it is extracting the installer. Is there any way to have the script continue while the installer is being extracted so i can run a command that, for instance, gets the current size of the file until the file is finished transferring and sets the progress bar based on the current size of that file? Sorry that was so long, and thank you, 403forbidden Link to comment Share on other sites More sharing options...
Authenticity Posted February 13, 2009 Share Posted February 13, 2009 lol forbidden... It's possible to do it via AdlibEnable or using the API function ReadFileEx with a completion routine if applicable. Link to comment Share on other sites More sharing options...
403forbidden Posted February 13, 2009 Author Share Posted February 13, 2009 How would the adlibenable function work, sorry, a bit of a noob. Link to comment Share on other sites More sharing options...
Authenticity Posted February 13, 2009 Share Posted February 13, 2009 The help file helps much better than I do, but I'll drop some note because I've been corrected about a naive thought... AdlibEnable does call your function even if your script is suspended. Link to comment Share on other sites More sharing options...
BrettF Posted February 13, 2009 Share Posted February 13, 2009 http://www.autoitscript.com/forum/index.ph...ar+file+install Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
403forbidden Posted February 14, 2009 Author Share Posted February 14, 2009 If you are saying that it is impossible, thats ok, thanks for the help. Link to comment Share on other sites More sharing options...
BrettF Posted February 14, 2009 Share Posted February 14, 2009 It is possible if you were to do what was suggested in the thread. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
403forbidden Posted February 14, 2009 Author Share Posted February 14, 2009 chuck up the file, got it. Link to comment Share on other sites More sharing options...
BrettF Posted February 14, 2009 Share Posted February 14, 2009 You got something working? It would be awesome if you could post it for future reference of people searching... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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