Jump to content

Can Control Click use INSTANCE only to perform operation.?


Recommended Posts

All,

I have a problem in clicking the login button of my Windows application. I have used AutoIt Info tool to get all the details of my application.

Apart from INSTANCE, rest all values are dynamic. Other values are getting changed for every restart of my application.

Is there a way to Control Click Login button using INSTANCE only ? Or should we use CLASS as well ?

I have tried below things and seems to be not working.

[INSTANCE:22]

[TEXT:""; INSTANCE:22]

 

AutoIt Info output is below:

>>>> Window <<<<
Title:    CTI Toolkit Agent Desktop (Win32) (12.0.118)
Class:    WindowsForms10.Window.8.app.0.141b42a_r9_ad1
Position:    63, 224
Size:    965, 239
Style:    0x16CF0000
ExStyle:    0x00050100
Handle:    0x000C05AE

>>>> Control <<<<
Class:    ATL:6A314000
Instance:    22
ClassnameNN:    ATL:6A31400022
Name:    
Advanced (Class):    [CLASS:ATL:6A314000; INSTANCE:22]
ID:    152799892
Text:    
Position:    4, 15
Size:    37, 37
ControlClick Coords:    16, 24
Style:    0x56000000
ExStyle:    0x00000000
Handle:    0x000C05DC

>>>> Mouse <<<<
Position:    91, 294
Cursor ID:    0
Color:    0x000000

>>>> StatusBar <<<<
1:    Ext:   Inst: 
2:    Agent ID: 
3:    
4:    Agent Status: 
5:    
6:    

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Greeting
Alt/Reconn
Hold/Retrieve
Dial/Answer/Release
Conf/Transfer
Ext:   Inst: 
Sup Assist
Tools
Agent State
Login


>>>> Hidden Text <<<<
 

Link to comment
Share on other sites

It needs what the help file says it needs so you gonna need a title or a class name or the other parameters that are substitutable. This is winforms And the auto IT calls might not work directly on it

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

Thanks for the response. 

In my case, Class Name is getting changed dynamically. But Title is constant. 

I am new to Autoit scripting. Would you be able to give me the syntax to make use of Title and Instance ? 

Because, from the help of ControlClick, I could not find 'Title' as one of the parameter. It has only these, ID , TEXT, NAME, CLASS, CLASSNN, INSTANCE, X \ Y \ W \ H, REGEXPCLASS

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