Sign in to follow this  
Followers 0
rubyuser

ControlClick and Send not working

4 posts in this topic

Ok, new to using AutoIt and having bizzare problems with just about anything I try to script (WinXP SP2 + IE7).

Basically, I can do a ControlFocus and get that to work, but I cannot get a ControlClick to register. Here's some sample code I have and commented out are various attempts I've made to get the IE7 file download box to "Save"...

So, ControlFocus works most reliably only when using the controlid (4227). But I cannot get the click to register. If I just try send, then the '!' seems to register, but not the 's'.

I also tried scripting other dialog boxes with similar oddities, e.g. I can get the filename control text ($filename=ControlGetText("Save File", "", "Edit1")), but not set the filename, etc.

CODE
WinActivate ("File Download")

WinWaitActive ("File Download")

ControlFocus("File Download","", 4427)

ControlClick("File Download", "", 4427)

;Send("!s")

;ControlFocus("File Download","","&Save")

;ControlClick("File Download", "Do you want to open or save this file?", "&Save")

;ControlFocus("File Download", "", "[CLASS:Button;TEXT:&Send;INSTANCE:2]")

;ControlClick("File Download", "", "[CLASS:Button;TEXT:&Send;INSTANCE:2]")

Share this post


Link to post
Share on other sites



Self reply to add, tried the examples directory that comes with AutoIt3 and realized NONE of them that try to send data/click work...

...what gives? Any examples of sort of a complete failure of AutoIt3 to work?

Share this post


Link to post
Share on other sites

What version of AutoIt are you using?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

What version of AutoIt are you using?

AutoIt Version 3, dld off website this morning (3.2.4.6).

Also I manually tried regsvr32 /u and regsvr32 of the autoitx3.dll for what it was worth.

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