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,
Page 1 of 1
help with autoit
#2
Posted 01 December 2006 - 07:55 AM
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.
Be sure when you are sending the last ENTER that the button is actually default.
#3
Posted 01 December 2006 - 08:34 AM
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:)
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:)
#4
Posted 03 December 2006 - 06:29 AM
try using
To get ID's or names use AutoIt Window Info. It's way better this way then Send control
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
Share this topic:
Page 1 of 1



Help
Back to top










