Hyflex Posted June 10, 2013 Posted June 10, 2013 (edited) expandcollapse popup>>>> Window <<<< Title: Dev r0043 Class: WindowsForms10.Window.8.app.0.378734a Position: 811, 379 Size: 298, 281 Style: 0x16C00000 ExStyle: 0x00010101 Handle: 0x00000000000A0760 >>>> Control <<<< Class: WindowsForms10.BUTTON.app.0.378734a Instance: 3 ClassnameNN: WindowsForms10.BUTTON.app.0.378734a3 Name: Button1 Advanced (Class): [NAME:Button1] ID: 143395484 Text: OK Position: 205, 220 Size: 75, 23 ControlClick Coords: 48, 9 Style: 0x5601000B ExStyle: 0x00000000 Handle: 0x00000000088C0A9C >>>> Mouse <<<< Position: 1067, 633 Cursor ID: 0 Color: 0xECECEC >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Default Profile Remember user name Cancel OK Password User nameI've been trying all of the class's but I can't get it working... ControlClick("[CLASS:WindowsForms10.BUTTON.app.0.378734a]", "", "[NAME:Button1]") ControlClick("[CLASS:WindowsForms10.BUTTON.app.0.378734a]", "", "[CLASS:WindowsForms10.EDIT.app.0.378734a; INSTANCE:3]") ControlClick("[CLASS:WindowsForms10.BUTTON.app.0.378734a]", "", "[ID:143395484") ControlClick("[CLASS:WindowsForms10.BUTTON.app.0.378734a]", "", "[CLASSNN:WindowsForms10.BUTTON.app.0.378734a3]")Why are none of these working, what am I doing so wrong? Edited June 10, 2013 by Hyflex
FireFox Posted June 10, 2013 Posted June 10, 2013 Hi,There is some topics showing the WindowsForms issue. Make a search and you should find what you want.Br, FireFox.
Bowmore Posted June 10, 2013 Posted June 10, 2013 Any of these should work.ControlClick("[CLASS:WindowsForms10.Window.8.app.0.378734a]", "", "[NAME:Button1]") ControlClick("[CLASS:WindowsForms10.Window.8.app.0.378734a]", "", "[CLASS:WindowsForms10.EDIT.app.0.378734a; INSTANCE:3]") ControlClick("[CLASS:WindowsForms10.Window.8.app.0.378734a]", "", "[ID:143395484") ControlClick("[CLASS:WindowsForms10.Window.8.app.0.378734a]", "", "[CLASSNN:WindowsForms10.BUTTON.app.0.378734a3]") ControlClick("Dev r0043", "", "[NAME:Button1]") ControlClick("Dev r0043", "", "[CLASS:WindowsForms10.EDIT.app.0.378734a; INSTANCE:3]") ControlClick("Dev r0043", "", "[ID:143395484") ControlClick("Dev r0043", "", "[CLASSNN:WindowsForms10.BUTTON.app.0.378734a3]")The first 2 parameters are used to identify the window not the control. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
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