Sign in to follow this  
Followers 0
gripper

Control Click - Missing Window Name

4 posts in this topic

I am trying to send a control click to a window when a program starts (like a splash screen) so it clears so that program can start. I want to click the "OK" button

The window does not have a Title which is causing issue.

I tried this but it did not work. Any help would be appreciated.

ControlClick("[CLASS:Button; INSTANCE:1]","Left",1)

I t

Here is the Window Info

>>>> Window <<<<

Title:

Class: #32770

Position: 779, 484

Size: 171, 144

Style: 0x94C801C5

ExStyle: 0x00010101

Handle: 0x007A08D4

>>>> Control <<<<

Class: Button

Instance: 1

ClassnameNN: Button1

Name:

Advanced (Class): [CLASS:Button; INSTANCE:1]

ID: 2

Text: OK

Position: 68, 79

Size: 88, 26

ControlClick Coords: 51, 16

Style: 0x50030000

ExStyle: 0x00000004

Handle: 0x000902F2

>>>> Visible Text <<<<

OK

click to continue...

Share this post


Link to post
Share on other sites



ControlClick ("[CLASS:#32770]", "", "Button1", "left", 2)

Tested with:

MsgBox (0, "", "Click OK Button")

Share this post


Link to post
Share on other sites

Thank You HeJake!

That worked perfectly. I really appreciate it.

Share this post


Link to post
Share on other sites

No prob :)

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