Jump to content

ControlClick based on AutomationId

Recommended Posts

Hi Expert,

I am using AutoItX3.dll for automation of windows application in C#.  

For getting the control name i am using Au3Info application but some time it does not give me control name.  So as second option I started using Inspect.exe [UIAutomation]. I can find the AutomatioId. 

But i dont kwn how to set control click based on AutomationID. Below is my code. 

I have tried name and AutomationID both

MyAutoIt.ControlClick("Calculator", "", "Name: num5Button", "LEFT", 1);

Please help me out.



Link to post
Share on other sites


Thanks for the reply. It was helpfull.

I did tried link info. i can able to send value to calculator. Calculator is just the option i was trying. 

But if Auto Info window is not giving Control Name how can we use name given by inspect and set and get value to it 

MyAutoIt.ControlClick("Calculator", "", "[Name: Five]", "LEFT", 1); // name from inspect


Edited by KhalidAnsari
Link to post
Share on other sites

 You can only use AutoIt on applications with standard Win32 controls. Forget this for Calculator in Win10 and other newer .net apps

you still have options in this language but it becomes ugly fast for non win32 apps

Start by reading FAQ 31

Edited by Earthshine

My resources are limited. You must ask the right questions


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...