RadicalKoncepts Posted May 10, 2019 Posted May 10, 2019 Given a windows applications, is there a technique available in AutoIT to detect and hint if the application is developed in .NET Framework (or) in Legacy VB6 ? Please guide. Thank you
Moderators Melba23 Posted May 12, 2019 Moderators Posted May 12, 2019 Moved to the appropriate forum. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Earthshine Posted May 12, 2019 Posted May 12, 2019 No. And what good would that do you anyway? My resources are limited. You must ask the right questions
RadicalKoncepts Posted May 14, 2019 Author Posted May 14, 2019 I am trying to automate a Windows Forms application using AutoIT. I couldn't succeed to interact with controls in that form. I suspect it could be a Windows forms developed in WPF or .NET based application. Plus, AutoIT Window Info does not snap/capture controls values! Please guide or provide directions
FrancescoDiMuro Posted May 14, 2019 Posted May 14, 2019 @RadicalKoncepts If no controls are shown in the AutoItWindowInfoTool, then you should use UIAutomation UDF Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
RadicalKoncepts Posted May 14, 2019 Author Posted May 14, 2019 Is it AutoIT limitation to interact with .NET windows forms control?
FrancescoDiMuro Posted May 14, 2019 Posted May 14, 2019 @RadicalKoncepts No, it's not. As long these controls have anything to interact with, like a ControlID, a control class, and so on, they can be automated by AutoIt. When these information are missing, then the native functions to deal with controls is no longer available, and so, that UDF need to be used in order to interact with those controls Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
RadicalKoncepts Posted May 14, 2019 Author Posted May 14, 2019 I understand. Is there .NET specific AutoIT UDF / AutoIT *.au3 files that I can find and do a POC to test a .NET based windows form? May I get a references to play around to understand better please?
Earthshine Posted May 14, 2019 Posted May 14, 2019 (edited) Read FAQ 31. UIAutomation. Already was told you above. Edited May 14, 2019 by Earthshine FrancescoDiMuro and RadicalKoncepts 1 1 My resources are limited. You must ask the right questions
Marc Posted May 14, 2019 Posted May 14, 2019 To answer the original question: run the command tasklist /m "mscor*" in the background and you should get a list of all current processes which are using mscoree.dll, which should be a sure sign of a .net exe. Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
RadicalKoncepts Posted May 14, 2019 Author Posted May 14, 2019 Earthshine. Thanks for your support and help me enlighten with iAUIAutomation. Yes. I did a POC now and I am able to click on the controls on a Windows Forms developed through Visual Studio.NET. Earthshine 1
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