Jump to content

[SOLVED] Problem with ControlClick


Recommended Posts

I can't get ControlClick to work. I test with the following code:

  $Text = ControlGetText ("PowerSDR", "", "[CLASS:WindowsForms10.BUTTON.app.0.34f5582_r11_ad1; INSTANCE:41]")
  MsgBox($MB_SYSTEMMODAL, "", $Text, 2)
  $Success = ControlClick ("PowerSDR", "", "[CLASS:WindowsForms10.BUTTON.app.0.34f5582_r11_ad1; INSTANCE:41]")
  MsgBox($MB_SYSTEMMODAL, "", $Success, 2)

ControlGetText  does give the correct result, eg the text on the button.

ControlClick does return '1' (Success) but the button is not clicked as expected. Adding additional parameters (button and clicks) does not change anything.

I am running under Windows 8.1 Pro

Any suggestions please?

Edited by Radioham
Link to comment
Share on other sites

Throw in a WinActivate prior to the click.

A #RequireAdmin might help also, if the app is running as admin.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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

×
×
  • Create New...