Jump to content
Sign in to follow this  
nandy12

help with menu select and button click -controlclick unreliable

Recommended Posts

nandy12

Hi, I have seen earlier posts about controlclick being unreliable but did not get a good way to make the following work: I need to select a menu item on another app and then click a button.

I am using send and controlclick but if a new window comes up shifting the input focus the button click fails. I thought it was sending a message based on the window handle and hence it should not have such problems?

How do I ensure it works reliably? code below:

Send("!o")

Send("a")

Sleep(500)

ControlClick("MobiApp","","[TEXT:Done]")

tks,

nan

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, nany12, welcome to the forum. It will go a long way to helping us help you if you can provide a little more information. I'm assuming you're trying to automate MobiApp, but can you please provide a screenshot of the menu and item you're trying to click on? Off the top of my head without being able to see the window or menu, I would suggest taking a look at the WinMenuSelectItem function in the help file.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

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  

×