Jump to content

help with menu select and button click -controlclick unreliable


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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