Jump to content

ControlClick and Send not working


Recommended Posts

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]")

Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...