Jump to content

How to click XTPToolbar items with AutoIT ?


Recommended Posts

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 :

 

>>>> 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 by Jules
Link to comment
Share on other sites

  • 3 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...