rubyuser Posted May 23, 2007 Share Posted May 23, 2007 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. CODEWinActivate ("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 More sharing options...
rubyuser Posted May 23, 2007 Author Share Posted May 23, 2007 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 More sharing options...
herewasplato Posted May 23, 2007 Share Posted May 23, 2007 What version of AutoIt are you using? [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
rubyuser Posted May 23, 2007 Author Share Posted May 23, 2007 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. 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