Help - Search - Members - Calendar
Full Version: help with autoit
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
coca
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
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.
coca
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.smile.gif
remove the first half of the code and it now works:)
--=ddSHADOW=--
try using
CODE
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 newwink.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.