Jump to content

AutoIt window spy tool not capturing objects in my application


 Share

Recommended Posts

Hello there,

I am new to AutoIt and using robotframework for doing automation for my application. I am having a problem where AutoIt window spy tool is not able to recognize the below.

1. Menu bar of my application.

2. Texts from the dialog box. 

The application was built using .NET

Link to comment
Share on other sites

Ok so the window tool can't really capture the menu bar.  I have a Autoit GUI Script and the window capture tool can't pick up any information from the menu bar for the menu bar either.  You shouldn't really need it.  Is there a reason you are trying to get a handle to it?  As for the dialog box...  Are you referring to an edit control or a message box..  If you could post a picture of the item giving you the issue with the text (maybe including in the screenshot what the Autoit Window capture tool does read from it), I might be able to help further.

Link to comment
Share on other sites

Thanks Matt. 

With respect to the menu items, I am using mouse clicks which is fine for now. I am having difficulties in getting the texts from lists (mentioned as dialog box in my previous post, sorry). 

 

This is the list control (from AutoIt finder)

>>>> Control <<<<
Class:    WindowsForms10.SysListView32.app.0.378734a
Instance:    1
ClassnameNN:    WindowsForms10.SysListView32.app.0.378734a1
Name:    
Advanced (Class):    [CLASS:WindowsForms10.SysListView32.app.0.378734a; INSTANCE:1]
ID:    658428
Text:    
Position:    23, 93
Size:    736, 368
ControlClick Coords:    407, 114
Style:    0x56010141
ExStyle:    0x00000200
Handle:    0x000A0BFC

 

Questions:

1. AutoIT could not really scan the texts(table of contents) present in the list. What is the reason behind it? Am I doing it wrong?

2. I am trying to use the ControlListView keyword (Robotframework - AutoIT) and trying to get the texts from it. Here is the below snippet.

                  Control List View  My app window title  ${EMPTY}  [ClassnameNN:WindowsForms10.SysListView32.app.0.378734a1]  SelectAll  ${EMPTY}  ${EMPTY}

                  ${temp} =  Control List View  My app window title  ${EMPTY}  [ClassnameNN:WindowsForms10.SysListView32.app.0.378734a1]    Getselected  1  ${EMPTY}
                  log  ${temp}

Please correct if the above code is wrong or suggest me any valid ones which I have to look for.

 

 

 

Edited by Coderv
Edited question
Link to comment
Share on other sites

@MattHiggs

Hello Matt,

Please see below. The Text field for that list control shows blank. Kindly help. Also attached a sample drafted format of how that list control content looks like (not the actual content).

Window:
title - App title
Class - WindowsForms10.Window.8.app.0.378734a
Style - 0x17CF0000  WS_BORDER, WS_CAPTION, WS_CLIPCHILDREN, WS_CLIPSIBLINGS, WS_GROUP, WS_MAXIMIZE, WS_SIZEBOX, WS_SYSMENU, WS_TABSTOP, WS_VISIBLE
ExStyle - 0x00050100  WS_EX_APPWINDOW, WS_EX_CONTROLPARENT, WS_EX_WINDOWEDGE
Handle - 0x00000000001910C4
Position - -8 -8
Size - 1936 1056
PID - 4228
Path - Path to the app


Control:
Class- WindowsForms10.SysListView32.app.0.378734a
Instance - 1  [CLASS:WindowsForms10.SysListView32.app.0.378734a; INSTANCE:1]
ID- 1315174  [CLASS:WindowsForms10.SysListView32.app.0.378734a; ID:1315174]
Style - 0x56010141  0x00000141, WS_CHILD, WS_CLIPCHILDREN, WS_CLIPSIBLINGS, WS_TABSTOP, WS_VISIBLE
ExStyle - 0x00000200 WS_EX_CLIENTEDGE
Position = 23 93
Size - 736 368
Text - (empty)

 

New Bitmap Image.bmp

Edited by Coderv
Inserted sample list
Link to comment
Share on other sites

Link to comment
Share on other sites

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...