LarsJ Posted December 29, 2019 Author Share Posted December 29, 2019 Correction of errors in the $dtag_IUIAutomationRangeValuePattern definition in UIA_Constants.au3 as reported by rmckay in this thread. New zip-file at bottom of first post. The zip-file in the UIA Code example is updated accordingly. loulou2522, argumentum and Exit 2 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Sundarrajan Posted January 30, 2020 Share Posted January 30, 2020 On 4/25/2019 at 2:28 AM, SEKOMD said: I use Windows 10 1607 LTSB (thin, lightweight, stable). Dear LarsJ, many thanks for the promptness! Hi Team, I'm trying to download UIASpy.7z, but its unavailable. Anybody can help? Thanks, Sundarrajan R Link to comment Share on other sites More sharing options...
LarsJ Posted January 30, 2020 Author Share Posted January 30, 2020 What do you mean by unavailable? You can download the file at bottom of first post. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Sundarrajan Posted February 2, 2020 Share Posted February 2, 2020 On 1/30/2020 at 9:42 PM, LarsJ said: What do you mean by unavailable? You can download the file at bottom of first post. Many Thanks Larsj. I've started using the UIASpy. In the example scripts i could see "UIAWrappers.au3" but couldn't find that file. Would it be possible to share the link to download? Link to comment Share on other sites More sharing options...
junkew Posted February 2, 2020 Share Posted February 2, 2020 Uiawrappers is in the uia thread examples section. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
faustf Posted April 24, 2020 Share Posted April 24, 2020 hi i have this error someone can help me ? : error: can't open include file "..\UIA_Constants.au3". Link to comment Share on other sites More sharing options...
LarsJ Posted April 25, 2020 Author Share Posted April 25, 2020 UI Automation UDFs must be installed in the Includes folder. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
faustf Posted April 25, 2020 Share Posted April 25, 2020 thankz , i add in include a file and now have this error UIASpy.au3 UIASpy\Includes\GuiIncludes\UIASpy_Arrays.au3"(133,2) : error: syntax error , Link to comment Share on other sites More sharing options...
Popular Post LarsJ Posted April 25, 2020 Author Popular Post Share Posted April 25, 2020 faustf, I'm pretty sure your life will be much easier if you find yourself a job where you can use your hands. And neither on a mouse nor a keyboard. TheXman, mLipok, Decibel and 2 others 1 4 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Viszna Posted October 15, 2020 Share Posted October 15, 2020 Hi I have a question: Is it possible to get the message content from the window? The content of the message is nowhere to be seen (I checked every element and properties) I have an application to handle in which many windows are displayed in this way, and I MUST download the content of the message for verification. Link to comment Share on other sites More sharing options...
LarsJ Posted October 15, 2020 Author Share Posted October 15, 2020 I think the TPanel control and other T-controls are Borland controls. This means that the code is probably quite old code that only supports MSAA automation. The fact that LegacyIAccessible is the only recognized pattern interface confirms this. This means that the possibilities for automating the program and extracting the text information are probably quite limited or rather complicated. There was a similar issue in this thread recently. If you read through the posts, you can get an overview of the possibilities. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Viszna Posted October 16, 2020 Share Posted October 16, 2020 Thank you very much for the information @LarsJ I thought there would be a problem, I already started working with Tesseract, but I wanted to check with specialists UIA Link to comment Share on other sites More sharing options...
Nezaloth Posted January 3, 2021 Share Posted January 3, 2021 How would you go about reading this variable with UIASpy in Autoit? Sorry if its obvious but I have never used the tool before. Link to comment Share on other sites More sharing options...
LarsJ Posted January 3, 2021 Author Share Posted January 3, 2021 You don't use UIASpy directly in your own script. You use the information in UIASpy to create code to read the value of the ComboBox. And it's this code that you use in your own script. It's exactly the same as for classic automation code. You don't use the "AutoIt Window Info" tool directly in your own script. You use the information in the "AutoIt Window Info" tool to create code that you use in your own script. How to use UIASpy to create your own automation code is described in Using UI Automation Code in AutoIt. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
HieuNguyen Posted March 21, 2021 Share Posted March 21, 2021 (edited) Question? Hi everyone, I'm new on autoit so recently I have building tool to automation HMA tool. I'm using UIASpy tool to detect element. Everything work perfect on my real machine but when I run my tool on vps it doesn't work because UIASpy tool can't detect element. So anyone here know the reason? please help. thank you so much. Sorry if I post question wrong place. This is UIASpy detected on real machine This is the UIASpy tool detected on VPS Edited March 21, 2021 by HieuNguyen Link to comment Share on other sites More sharing options...
AutoItFox Posted June 4, 2021 Share Posted June 4, 2021 MS Office, e. g. Word: AccessKey for ribbon groups A hello again after 11 years, I'm a long term AHK user. Many thanks for all your efforts concerning Windows automation - we are one lovely family, right? I have only Word 2010. Can somebody be so kind and veryify whether it's possible to get the $UIA_AccessKeyPropertyId from an ribbon tab group? I get only garbish (with different tools). $UIA_NamePropertyId is correct. And when are the $UIA_AccessKeyPropertyIds available? After my tests the ribbon tabs must be active/focused. Many thanks and greetings AutoItFox Link to comment Share on other sites More sharing options...
junkew Posted June 7, 2021 Share Posted June 7, 2021 I am not sure what you get but maybe an alternative is just to use the office com object model as that reveals much more from your office applications. $oWdApp=objcreate("word.application") $owdApp.commandbars ..... google a little on vba commandbar ribbonbar and you will be able to reveal much more from your office GUI menu's, toolbars either thru the object model or by reading the ribbonbar xml templates FrancescoDiMuro and Earthshine 2 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
DM666 Posted August 16, 2021 Share Posted August 16, 2021 Hey guys, is possible that someone gives me a compiled UIASpy.exe? I'm getting error when compile it myself. Thanks in advance! Link to comment Share on other sites More sharing options...
LarsJ Posted August 17, 2021 Author Share Posted August 17, 2021 As UIASpy is a program for AutoIt programmers and not end users, and since most programmers have AutoIt installed on the PC, there is no need to compile the code. The easiest way is to run the code directly from the au3-files. Please read this entire thread carefully to install UIASpy. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
DM666 Posted August 20, 2021 Share Posted August 20, 2021 On 8/17/2021 at 8:58 PM, LarsJ said: As UIASpy is a program for AutoIt programmers and not end users, and since most programmers have AutoIt installed on the PC, there is no need to compile the code. The easiest way is to run the code directly from the au3-files. Please read this entire thread carefully to install UIASpy. Thank you for replying I do have AutoIt installed, as you may see on the screenshot. The problem is that my version is outdated (3.3.8.0) and I don't really want to upgrade because I have tons of scripts running everywhere and do not dare to face compatibility problems in the near future That's why running from SciTE is not an option, and compile doesn't work. I guess there are more people like me around. And to spare them some time on opening the virtual machine, installing the last version of AutoIt, and compiling it there, I will add compiled version to this post. Of course, if you still think that it's a bad idea for whatever reason, I will remove it immediately. By the way, thank you for creating such a great tool. I think I gonna spend the next few years figuring out how it works and what I can do with it UIASpyCompiled.zip 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