Coderv

AutoIt window spy tool not capturing objects in my application

8 posts in this topic

#1 ·  Posted

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

Share this post


Link to post
Share on other sites



#2 ·  Posted

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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#4 ·  Posted

@MattHiggs - Hello Matt, Sorry for the urge. Do you have updates please?

Share this post


Link to post
Share on other sites

#5 ·  Posted

Ah sorry.  Let me take a look

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

@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

Share this post


Link to post
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