cwem Posted May 31, 2009 Share Posted May 31, 2009 I'm modifying old codes and encounter the following line: ControlClick("Save As", "Save &in", "&Save") I have studied Send help and am unable to get any idea... Link to comment Share on other sites More sharing options...
Pain Posted May 31, 2009 Share Posted May 31, 2009 (edited) Perhaps you should study ControlClick() instead. If you have any questions about the "&" sign use Autoit Window tool and you'll see why. Edited May 31, 2009 by Pain Link to comment Share on other sites More sharing options...
cwem Posted June 3, 2009 Author Share Posted June 3, 2009 Perhaps you should study ControlClick() instead.If you have any questions about the "&" sign use Autoit Window tool and you'll see why.According to Autoit window tool, should i focus on "text" instead of "visible text" for ControlClick? My automation is like this:go to a web page and get the ID's, then use these ID's to download texts. The problem is: for the 1st download, it works perfectly. For the 2nd one, I have to click "Save" myself in the File Download Window, and then the Save as window can still accomplish. Then no more file download window shows up, and the program does not exit with any error neither. It seems to be waiting for something. Ok, if I don't click it, i may have to wait for 10 min? I don't know, I continue to work on other windows and come back to this file download window again, it then "knows" to work properly again.I don't know whether this style may lead to problems during execution WinWaitActive("File Download") WinActivate("File Download") ControlClick("File Download", "Do you want to open or save", "&Save") WinWaitClose("File Download") WinActivate("Save As") ControlClick("Save As", "Save &in", "&Save") WinWaitClose("Save As")The file size is about 4MB 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