Jump to content
Sign in to follow this  

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 <<<<
Remember user name
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

Share this post

Link to post
Share on other sites


There is some topics showing the WindowsForms issue. Make a search and you should find what you want.

Br, FireFox.


OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control


Share this post

Link to post
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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.