Deter Posted October 22, 2014 Share Posted October 22, 2014 (edited) I am very new to the AutoIt tool and below is the script i have: WinActivate ("File Download") ControlClick("[TITLE:File Download]", "", "[TEXT:&Save]") Click on the save button in the Download dialog box. The Download dialog box is highlighted but it is not clicking on the save button. Below is from the console: >"C:AutoItv3SciTeAutoIt3WrapperAutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:ramDesktopautoIt_First.au3" /UserParams +>23:04:51 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86 Environment(Language:0409) +> SciTEDir => C:AutoItv3SciTe UserDir => C:AutoItv3SciTeAutoIt3Wrapper >Running AU3Check (3.3.12.0) from:C:AutoItv3 input:C:ramDesktopautoIt_First.au3 +>23:04:51 AU3Check ended.rc:0 >Running:(3.3.12.0):C:AutoItv3autoit3.exe "C:ramDesktopautoIt_First.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop +>23:04:52 AutoIt3.exe ended.rc:0 +>23:04:52 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.134 Any help?? I am pretty sure i am missing some basic damn thing here.. Edited October 22, 2014 by Deter Link to comment Share on other sites More sharing options...
232showtime Posted October 22, 2014 Share Posted October 22, 2014 read the help file and try to use the auto it window info tool... o:) ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Deter Posted October 22, 2014 Author Share Posted October 22, 2014 read the help file and try to use the auto it window info tool... o:) Yes..reading the help file and using Finder tool also.. When i am adding Debug to Console on the WinActivate and ControlClick ..it is working But if i just run without the debug lines it is not clicking on the save button Link to comment Share on other sites More sharing options...
Solution Jfish Posted October 22, 2014 Solution Share Posted October 22, 2014 My guess is timing based on your debug comment - sounds like the app may not be ready for your click. Try WinWaitActive. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt Link to comment Share on other sites More sharing options...
jguinch Posted October 22, 2014 Share Posted October 22, 2014 Try with the control ID or the Advanced Mode value (get it with AutoIt Window Info), instead of [TEXT:&Save] Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Deter Posted October 22, 2014 Author Share Posted October 22, 2014 My guess is timing based on your debug comment - sounds like the app may not be ready for your click. Try WinWaitActive. Thanks for your comment. WinWaitActive did not work but i added a delay of 500ms and it is working fine now. Thanks so myuch Link to comment Share on other sites More sharing options...
Deter Posted October 22, 2014 Author Share Posted October 22, 2014 Try with the control ID or the Advanced Mode value (get it with AutoIt Window Info), instead of [TEXT:&Save] Thanks for the reply. The problem was timing issue and now it is working fine. Thanks for letting me know about Advanced Mode.. Link to comment Share on other sites More sharing options...
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