Jump to content

Button with no Control Info


Recommended Posts

Hi guys, I have a question for how to hit a button that doesn't have a control id?

I'm rewriting my test automation so that it can work from a locked workstation. The problem with that is that I click on a button that doesn't have any control id.

>>>> Window <<<<

Title: Erase

Class: Dialog

Position: 233, 307

Size: 229, 346

Style: 0x96CC0000

ExStyle: 0x00000100

Handle: 0x00080FC4

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Name:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle:

My question is what do I do in this situation? Does that button have no id or is it just hidden? Remember, I can't activate the window because I want it to work on a locked machine.

Besides the ok button, there is also a cancel button with no control info either.

Thanks,

Edited by Athos
Link to comment
Share on other sites

I found a solution :)

Turns out a I don't need a control id (My mistake was assuming it was a required field)

I can just use the window title and press enter.

ControlSend(WindowTitle, "","","{ENTER}")

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