Gopi Posted April 3, 2018 Share Posted April 3, 2018 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 More sharing options...
Earthshine Posted April 3, 2018 Share Posted April 3, 2018 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 More sharing options...
Gopi Posted April 3, 2018 Author Share Posted April 3, 2018 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 More sharing options...
Earthshine Posted April 3, 2018 Share Posted April 3, 2018 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 Link to comment Share on other sites More sharing options...
Gopi Posted April 7, 2018 Author Share Posted April 7, 2018 @Earthshine , Any help that you can provide me in this case ? Please let me know. Link to comment Share on other sites More sharing options...
Danp2 Posted April 7, 2018 Share Posted April 7, 2018 Did you try this? ControlClick("CTI Toolkit Agent Desktop", "", "[Instance:22]") Earthshine 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now