gripper Posted November 10, 2012 Share Posted November 10, 2012 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... Link to comment Share on other sites More sharing options...
HeJake Posted November 10, 2012 Share Posted November 10, 2012 ControlClick ("[CLASS:#32770]", "", "Button1", "left", 2) Tested with: MsgBox (0, "", "Click OK Button") Link to comment Share on other sites More sharing options...
gripper Posted November 10, 2012 Author Share Posted November 10, 2012 Thank You HeJake! That worked perfectly. I really appreciate it. Link to comment Share on other sites More sharing options...
HeJake Posted November 10, 2012 Share Posted November 10, 2012 No prob Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now