Sign in to follow this  
Followers 0
Deter

simple basic script not working - Help!

7 posts in this topic

#1 ·  Posted (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 by Deter

Share this post


Link to post
Share on other sites



read the help file and try to use the auto it window info tool... o:) o:) o:)


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

read the help file and try to use the auto it window info tool... o:) o:) 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0