Sign in to follow this  
Followers 0
cwem

special character in controlclick

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Pain

Share this post


Link to post
Share on other sites

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

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