Gyppie Posted January 17, 2010 Share Posted January 17, 2010 Hi! I am making unnatended silent program installation files for my windows setup. And I thougth that a progress bar would be nice. Since I'm not so confident with autoit, and I have tried searching, I realy hope someone could help me put this together. I'm going to use the RunWait command for installing programs silently. What I have found and want is this #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <SendMessage.au3> global $hGUI = GUICreate("Test", 420, 70) GUICtrlCreateProgress(10, 20, 400, 20, $PBS_MARQUEE) _SendMessage(GUICtrlGetHandle(-1), $PBM_SETMARQUEE, True, 5) ; final parameter is update time in ms GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd But I also want some text under the progress bar saying "installing program" etc, and after program is installed by RunWait command the progress bar stops and stand at 100%, and the text saying "done" etc. Is this possible, and can somone please help me with this? Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 17, 2010 Share Posted January 17, 2010 You went at it the hard way. What's wrong with the simple ProgressOn()/ProgressSet()/ProgressOff()? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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