Jump to content
Sign in to follow this  
Gopi

Can Control Click use INSTANCE only to perform operation.?

Recommended Posts

Gopi

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

Share this post


Link to post
Share on other sites
Earthshine

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

 

Share this post


Link to post
Share on other sites
Gopi

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

Share this post


Link to post
Share on other sites
Earthshine

Uh Text. But if that is dynamic you won’t be able to. I’m not at a computer right now so I can’t do anything


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Gopi

@Earthshine , Any help that you can provide me in this case ? Please let me know.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.