Jump to content

Unable to click a button with ControlSend?


Recommended Posts

>>>> 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 name
I'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 by Hyflex
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...