CATNA Posted February 7, 2019 Share Posted February 7, 2019 I has a form like image Here is the window info. >>>> Window <<<< Title: Form1 Class: WindowsForms10.Window.8.app.0.141b42a_r11_ad1 Position: 0, 0 Size: 816, 489 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x0000000000100BC6 >>>> Control <<<< Class: WindowsForms10.Window.8.app.0.141b42a_r11_ad1 Instance: 1 ClassnameNN: WindowsForms10.Window.8.app.0.141b42a_r11_ad11 Name: toolStrip1 Advanced (Class): [NAME:toolStrip1] ID: 5309498 Text: toolStrip1 Position: 0, 0 Size: 800, 25 ControlClick Coords: 42, 13 Style: 0x56000000 ExStyle: 0x00010000 Handle: 0x000000000051043A My script: Run("MyApp.exe") WinWaitActive("Form1") Send("Hello") Sleep(2000) ControlClick("Form1", "", "toolStripButton2") This code doesn't click on toolStripButton2. Can anyone help me fix it? Link to comment Share on other sites More sharing options...
Earthshine Posted February 7, 2019 Share Posted February 7, 2019 see this thread, get the zipped files and use this for those types of controls. LarsJ 1 My resources are limited. You must ask the right questions 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