KhalidAnsari Posted July 31, 2018 Share Posted July 31, 2018 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 comment Share on other sites More sharing options...
KhalidAnsari Posted July 31, 2018 Author Share Posted July 31, 2018 Please waiting for reply... Link to comment Share on other sites More sharing options...
Earthshine Posted July 31, 2018 Share Posted July 31, 2018 https://www.autoitscript.com/forum/topic/188687-automating-calculator-for-windows-10/ My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
KhalidAnsari Posted August 1, 2018 Author Share Posted August 1, 2018 (edited) Hi, 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 Thanks Edited August 1, 2018 by KhalidAnsari Link to comment Share on other sites More sharing options...
Earthshine Posted August 1, 2018 Share Posted August 1, 2018 (edited) 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 August 1, 2018 by Earthshine 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