Jump to content

Screen Print 32 autoit


PX_Darkness

Recommended Posts

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-1

So 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


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...