Jules Posted May 4, 2016 Share Posted May 4, 2016 (edited) Hello, I am currently writing an AutoIT v3 script to automate a process with the GIS ArcMap (for those who know). The thing is that I have to click the "Fichier" menu (I'm french, so menus text is too), then "Ajouter des données" and finally "Ajouter des données..." . I used "AutoIt Window Info" in order to get some information about the menus, but I noticed that the tool bar (with all the menus at the top) is a quite strange type... XTPToolbar. Here is what "AutoIt Window Info" tells me about the tool bar : expandcollapse popup>>>> Window <<<< Title: Sans nom - ArcMap Class: Afx:00940000:b:00010005:00000006:01CB05E3 Position: -8, -8 Size: 1696, 1026 Style: 0x17CFC000 ExStyle: 0x00000100 Handle: 0x002A0524 >>>> Control <<<< Class: XTPToolBar Instance: 3 ClassnameNN: XTPToolBar3 Name: Advanced (Class): [CLASS:XTPToolBar; INSTANCE:3] ID: Text: Menu principal Position: 0, 0 Size: 1680, 25 ControlClick Coords: 28, 11 Style: 0x56000100 ExStyle: 0x00000000 Handle: 0x00430700 >>>> Mouse <<<< Position: 28, 33 Cursor ID: 0 Color: 0x600036 >>>> StatusBar <<<< 1: Aucune entité identifiée 2: >>>> ToolsBar <<<< >>>> Visible Text <<<< xtpBarTop Outils Mise en page 100% 100% Menu principal xtpBarBottom xtpBarLeft xtpBarRight I tried to use WinMenuSelectItem , by calling WinMenuSelectItem ("Sans nom - ArcMap", "", "Fichier", "Ajouter des données", "Ajouter des données..."), but nothing happens when I run my script. Also, I tried ControlClick, to try to click the "Fichier" menu, but again, nothing. So, I was wondering there was a way to interact with this annoying XTPToolbar ? Maybe a UDF available on the web ? Or anything else ? I would really appreciate any help ! Edited May 7, 2016 by Jules Link to comment Share on other sites More sharing options...
junkew Posted May 8, 2016 Share Posted May 8, 2016 See faq 31 part on iuiautomation and simplespy 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...
Jules Posted May 9, 2016 Author Share Posted May 9, 2016 (edited) Great, thank you ! Edited May 9, 2016 by Jules Link to comment Share on other sites More sharing options...
ur Posted February 5, 2020 Share Posted February 5, 2020 Hi @Jules I need similar code, but I didn't see any code related to it in FAQ 31shared by @junkew Please share it Link to comment Share on other sites More sharing options...
junkew Posted February 5, 2020 Share Posted February 5, 2020 Try the simplespy it will tell you 1. By highlighting if it can recognise 2. Will give you example code Earthshine 1 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...
Nine Posted February 5, 2020 Share Posted February 5, 2020 Have you tried to access it with GuiToolbar UDF ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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