retghy Posted May 30, 2007 Posted May 30, 2007 Hello all. I've been searching the forums for like 30 minutes now and I haven't been able to find anything related to what I want to do, all i find are progress bars for file/folders copy... I have a program that takes like 2 or 3 minutes sometimes more to fully load, what i want to do its create a progress bar for that program, that shows the progress untill the program is fully loaded. I cannot use time because the loading time is not always the same, besides it changes depending on the pc you run it. I'm using the Run Command to open the program but I still dont know how to update the progress bar with the actual time it takes to load the program.... I tried winwait but it doesn't work because even when the program is not completely loaded the window with a title already exist... I hope i explained myself good enough for you to understand. Thanks in advance.
Busti Posted May 30, 2007 Posted May 30, 2007 do the extern programm outputs some text? Like: 1% or smt ? Then you could use stdin / stdoud read. My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity
GaryFrost Posted May 30, 2007 Posted May 30, 2007 Are any controls disabled untill it finishes loading? If so you just keep checking the control untill it is enabled. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Zedna Posted May 30, 2007 Posted May 30, 2007 (edited) SplashTextOn('Progress','Loading program.exe ...',300,50) Run('program.exe') WinWaitActive('title of program') SplashOff() Edited May 30, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
retghy Posted May 30, 2007 Author Posted May 30, 2007 (edited) do the extern programm outputs some text? Like: 1% or smt ? Then you could use stdin / stdoud read.It doesn't output text as far as I know... Are any controls disabled untill it finishes loading? If so you just keep checking the control untill it is enabled.It takes time to load because its full of graphics, it is a game actually, and what's inside of it you cannot check it with the info tool or anything. SplashTextOn('Progress','Loading program.exe ...',300,50) Run('program.exe') WinWaitActive('title of program') SplashOff()Yor code works great, thank you, the only thing is that there is no progress bar at all , but apart from that it works perfect. I run an internet café and what im trying to do is some kind of launcher that shows the progress bar while the program windows (L-i-n-e-a-g-e-I-I) fully load and avoid the user from trying to open anything else from the desktop that might slow down the program load. Thanks again for taking the time to reply. Edited May 30, 2007 by retghy
AdmiralAlkex Posted May 30, 2007 Posted May 30, 2007 Why not make a script that stops mouse/keyboard input until the game is loaded?? Maybe something like SplashTextOn('Loading','Please note that while the game is loading your keyboard and mouse will be disabled... Please wait a minute...',300,50) BlockInput(1) Run('program.exe') WinWaitActive('title of program') SplashOff() BlockInput(0) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
jdg2010 Posted August 28, 2009 Posted August 28, 2009 (edited) Sorry for so many posts on this topic, But here is another one using process exists true in the splash and process close in the GUI. The splash will disable the mouse and the gui will enable the mouse. When the splash is launched it will start your main program and run the splash until you program closes the splash. My example GUI will sleep for a bit and then ProcessClose("Splash.exe") and show the window. NOTE: This is just a quick example. In the Splash.au3 you will need to Comment out or change the FileInstall() DIR, i used this to compile the Splash.jpg into the exe and it puts the file in the windows temp folder. Also the Splash will disable the mouse and the GUI will enable it back, You may want to change this as well. There is an error in the file install Original error "C:Windows\ == I left out the \ Fix for file install "C:\Windows\Temp\Splash.jpg") It should look something like this. $CompileSplash = True If $CompileSplash = True Then FileInstall("Splash.jpg", "C:\Windows\Temp\Splash.jpg") Sleep(250) Edited November 4, 2009 by jdg2010
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