Sign in to follow this  
Followers 0
NTNagpur

AutoIT window info not Identifying controls

5 posts in this topic

Hello All,

I am new to AutoIT. I just start to use autoIt for automated my testing process of application. Application is developed in WDF & mostly used customized control. AUTOIT windows info is showing same information for all control used in forms except mouse position. So it is getting difficult to write script. Please suggest appropriate process or share helpful information.

Thanks in advance…

Nikhil

Share this post


Link to post
Share on other sites



NTNagpur,

Welcome to the AutoIt forum. :)

AutoIt depends on the Windows API for a lot of its functionality, so dealing with custom controls is not easy. If the Window Info tool does not identify controls then there is little chance that AutoIt can interact with them.

If you were to post the information that you get from the Window Info tool, we might be able to offer more help, but I would not hold your breath. You are likely to have to rely on MouseClick with all its imperfections. :)

Sorry that this is such a negative message - we will try to do better next time. :P

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

NTNagpur,

Welcome to the AutoIt forum. :)

AutoIt depends on the Windows API for a lot of its functionality, so dealing with custom controls is not easy. If the Window Info tool does not identify controls then there is little chance that AutoIt can interact with them.

If you were to post the information that you get from the Window Info tool, we might be able to offer more help, but I would not hold your breath. You are likely to have to rely on MouseClick with all its imperfections. :)

Sorry that this is such a negative message - we will try to do better next time. :P

M23

Thanks You Very Much for your valuable reply..

below is information that get from the Window Info tool

>>>> Window <<<<

Title: Software

Class: HwndWrapper[DefaultDomain;;6234a2b3-c49c-4b45-90d0-d210636863c1]

Position: -8, -8

Size: 1382, 744

Style: 0x17CF0000

ExStyle: 0x00040300

Handle: 0x0013080A

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Name:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle:

>>>> Mouse <<<<

Position: 326, 408

Cursor ID: 0

Color: 0xB1CEF3

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

-----on mouse hover it change only information under mouse section ---

Share this post


Link to post
Share on other sites

NTNagpur,

As I feared - not a lot for AutoIt to work with:

You are likely to have to rely on MouseClick with all its imperfections

So WinGetPos to get the GUI position and then calculation of the screen position of the various controls within the GUI. I hope for your sake the GUI is not resizeable. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

there is no COM object available to handle your control or call to DLL (with all the pleasure to work with from autoIt) ?

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
Sign in to follow this  
Followers 0