BlackDragonBE Posted March 22, 2009 Share Posted March 22, 2009 Hi everyone! I'm trying out AutoIt3 because I thought it would be fun to automate the installs of my most used programs, but it' not as easy as I thought. I'm a programmer for a living, so I'm not really a beginner, but I seem to be missing something here... I checked the notepad example and it worked like a charm with me, I modified it a bit and it all worked great. However, when I tried the Winzip example on one of my own installers (Free DVD to ISO), I could only automate the first screen. The second screen is an installer screen with a parent screen with a background image and a label and a child control where you have the Next/Cancel buttons. This is what I have up to now: Run("freedvd2iso.exe") WinWaitActive("Setup") ControlClick("Setup","This will install Free DVD ISO Maker (by minidvdsoft). Do you wish to continue?", "Button1") WinWaitActive("Setup") ControlClick("Setup","Welcome to the Free DVD ISO Maker (by minidvdsoft) Setup Wizard", "TNewButton1") As I said, the first click works, but the second one doesn't do anything. The script exits though. I also tried an endless while loop with Send({ENTER}) but it sended enters everywhere, in every one of my apps except the installer! Does anyone have an idea? I can't get other installers to work either so I clearly must be doing something wrong, I couldn't find any information in the help files about my problem though. Please help, Eric Link to comment Share on other sites More sharing options...
bogQ Posted March 22, 2009 Share Posted March 22, 2009 well your script works for me try like this to see if itl work with no text on ControlClick Run("freedvd2iso.exe") WinWaitActive("[CLASS:#32770]") ControlClick("[CLASS:#32770]","", "Button1") WinWaitActive("[CLASS:TWizardForm]") Do ControlFocus ("CLASS:TWizardForm", "", "TNewButton1" ) Until ControlGetFocus("[CLASS:TWizardForm]") = "TNewButton1" ControlClick("[CLASS:TWizardForm]","", "TNewButton1") you can get CLASS name with autoit info tool. TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
BlackDragonBE Posted March 22, 2009 Author Share Posted March 22, 2009 Thank you so much! I was really getting frustrated Cheers, Eric 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