PX_Darkness Posted October 13, 2006 Share Posted October 13, 2006 Im attempting to create an autoit script for Screen Print 32. This is what i have so far:Run("setup.exe")WinWaitActive("Install")WinWaitActive("ScreenPrint32 v3.5 Setup", "Setup cannot install")Send("{ENTER}")WinWaitActive("ScreenPrint32 v3.5 Setup", "Click this button")Send("{ENTER}")WinWaitActive("ScreenPrint32 v3.5 - Choose Program Group")Send("!c")WinWaitActive("ScreenPrint32 v3.5 Setup", "was completed successfully")Send("{ENTER}")exe for Screen Print 32 can be found here:http://www.download.com/Screen-Print-Captu...tml?tag=lst-0-1So I compile the script and run it. It will run the correct exe file but then it doesnt do anything else. It wont continue with the script. Ive double checked all of my active window titles and they all seem to be correct.Any ideas?Thanks for your help Link to comment Share on other sites More sharing options...
benners Posted October 13, 2006 Share Posted October 13, 2006 The text you have for the dialogs was wrong, even though the text is there AutoIt cannot see it.Run("setup.exe")WinWaitActive("ScreenPrint32 v3.5 Setup", "E&xit Setup")Send("{ENTER}")WinWaitActive("ScreenPrint32 v3.5 Setup", "&Change Directory")Send("{ENTER}")WinWaitActive("ScreenPrint32 v3.5 - Choose Program Group", "&Continue")Send("!c")WinWaitActive("ScreenPrint32 v3.5 Setup", "was completed successfully")Send("{ENTER}")this worked for me but you will get additional windows if there are any version conflicts with dll or ocx files, if this happens the install will hang waiting for the next window.Basically I would repack this app, I think the vbruntime files are included with SP2 so not all the files will be needed or use WinSnap 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