NewtonScripter Posted June 24, 2008 Share Posted June 24, 2008 Hello I am a little new to autoit. How do you wait for a program to finish loading? I want to start a program wait for it to load then send "!f" then "i" to import files. My only issue iw waiting for the program to finish loading Thanks Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 24, 2008 Share Posted June 24, 2008 Have you tried WinWaitActive() or simply WinWait()?? .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 Link to comment Share on other sites More sharing options...
Smugglarn Posted June 24, 2008 Share Posted June 24, 2008 Run("YourProgram.exe");Run teh shiet WinWaitActive("TheCaptionOfTheProgram");Or something like that... Send("!f") Send("i") While(1) ;INFINITE LOOP FTW D: WEnd Like... That? :3 Link to comment Share on other sites More sharing options...
NewtonScripter Posted June 24, 2008 Author Share Posted June 24, 2008 Yea I tried winwaitactive. Like the window starts, but then there is a splash screen that shows it is loading. I'm guessing it's because it's loading when it does the alt+f, i thing. I don't want to make it wait for a fix time, but if there is no other solution I guess i will have to. Link to comment Share on other sites More sharing options...
FreeFry Posted June 24, 2008 Share Posted June 24, 2008 What program is it? Link to comment Share on other sites More sharing options...
system24 Posted June 25, 2008 Share Posted June 25, 2008 Get the text inside (not the title bar) of the window. Then: Run("Your Program.exe") WinWaitActive("ProgramTitle", "WindowText") Send("!f") Send("i") [center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center] Link to comment Share on other sites More sharing options...
Levenson Posted June 26, 2008 Share Posted June 26, 2008 Yea I tried winwaitactive. Like the window starts, but then there is a splash screen that shows it is loading. I'm guessing it's because it's loading when it does the alt+f, i thing. I don't want to make it wait for a fix time, but if there is no other solution I guess i will have to. try to use Advanced Window Descriptions. WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "") You should use AU3Info for getting class name of your window. 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