Jump to content

Recommended Posts

Posted

I have just started to try to learn how to use autoit. I am currently trying to use it to auto install picasa2 for me.

so far I haven't gotten far at all. The code I have is

Run("picasa.exe")

WinWait("Open File - Security Warning")

If Not WinActive("Open File - Security Warning") Then WinActivate("Open File - Security Warning")

WinWaitActive("Open File - Security Warning")

Send("&Run")

WinWait("Picasa2 Setup")

If Not WinActive("Picasa2 Setup") Then WinActivate("Picasa2 Setup")

WinWaitActive("Picasa2 Setup")

Send("{ENTER}")

when I run this script it opens the program. It gets past the security warning, but then stops there. It doesn't Click enter to go to the next windows. The weird thing is if I close the program and autoit script is still running....at this time ( I can then manual open picasa myself and it clicks thru the screens for me. Any help would be great.

thanks,


Posted

looks like you are sending the entire text of the RUN button, don't if it is the default button just send ENTER if it's not either tab to it and press ENTER or send {ALT}R

Be sure when you are sending the last ENTER that the button is actually default.

Posted

thanks for the advice.

it helped me finally figure out what was happening.

when I would run picasa2 manual i would get that window with a security warning.

where as when it was ran thru autoit - it when straight to the Picasa Setup window.:)

remove the first half of the code and it now works:)

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