coca Posted December 1, 2006 Posted December 1, 2006 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,
IcemanND Posted December 1, 2006 Posted December 1, 2006 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}RBe sure when you are sending the last ENTER that the button is actually default.
coca Posted December 1, 2006 Author Posted December 1, 2006 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:)
--=ddSHADOW=-- Posted December 3, 2006 Posted December 3, 2006 try using ControlClick ( "title", "text", controlID [, button] [, clicks] )To get ID's or names use AutoIt Window Info. It's way better this way then Send control
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