Zafire Posted December 20, 2015 Share Posted December 20, 2015 (edited) Hello!I'm trying to create a script that clicks a login button in a window that has no title. I can't seem to figure out how to click inside this window.This is what I get from AutoIt window info tool>>>> Window <<<<Title: Class: WindowsForms10.Window.8.app.0.33c0d9dPosition: 253, 25Size: 482, 671Style: 0x16CF0000ExStyle: 0x00050100Handle: 0x003C02E6>>>> Control <<<<Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<<Position: 376, 38Cursor ID: 0Color: 0xBD948C>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<<LoginUsername:Password:Login************************LogstatusStrip1>>>> Hidden Text <<<< This is from the window info tool when i hover the login button>>>> Control <<<<Class: WindowsForms10.BUTTON.app.0.33c0d9dInstance: 1ClassnameNN: WindowsForms10.BUTTON.app.0.33c0d9d1Name: Advanced (Class): [CLASS:WindowsForms10.BUTTON.app.0.33c0d9d; INSTANCE:1]ID: 2228998Text: LoginPosition: 12, 130Size: 223, 23ControlClick Coords: 111, 11Style: 0x5601000BExStyle: 0x00000000Handle: 0x00220306 My current code AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle("classname=WindowsForms10.Window.8.app.0.33c0d9d") ControlClick($handle, "", "WindowsForms10.BUTTON.app.0.33c0d9d")I've tried different things like this https://www.autoitscript.com/forum/topic/56195-window-with-no-title/ and it didn't work or I couldn't figure it out. Thanks for any help I can get!Zafire Edited December 20, 2015 by Zafire Link to comment Share on other sites More sharing options...
Gianni Posted December 21, 2015 Share Posted December 21, 2015 (edited) ... just a wild guess to tryControlClick("[CLASS:WindowsForms10.Window.8.app.0.33c0d9d]", "", "[ID:2228998]")orControlClick("[CLASS:WindowsForms10.Window.8.app.0.33c0d9d]", "", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d; INSTANCE:1]")good luck ... Edited December 21, 2015 by Chimp Zafire 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Zafire Posted December 21, 2015 Author Share Posted December 21, 2015 The second option worked very well. From that example I've figured out how to click around in rest of the program.Thank you for the help! 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