Jump to content

ControlClick on untitled window


Zafire
 Share

Recommended Posts

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.

45b8f2491e8e5217ef565b4b67044968.png

This is what I get from AutoIt window info tool

>>>> Window <<<<
Title:    
Class:    WindowsForms10.Window.8.app.0.33c0d9d
Position:    253, 25
Size:    482, 671
Style:    0x16CF0000
ExStyle:    0x00050100
Handle:    0x003C02E6

>>>> Control <<<<
Class:    
Instance:    
ClassnameNN:    
Name:    
Advanced (Class):    
ID:    
Text:    
Position:    
Size:    
ControlClick Coords:    
Style:    
ExStyle:    
Handle:    

>>>> Mouse <<<<
Position:    376, 38
Cursor ID:    0
Color:    0xBD948C

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Login
Username:
Password:
Login
************
************
Log

statusStrip1


>>>> Hidden Text <<<<

 This is from the window info tool when i hover the login button

>>>> Control <<<<
Class:    WindowsForms10.BUTTON.app.0.33c0d9d
Instance:    1
ClassnameNN:    WindowsForms10.BUTTON.app.0.33c0d9d1
Name:    
Advanced (Class):    [CLASS:WindowsForms10.BUTTON.app.0.33c0d9d; INSTANCE:1]
ID:    2228998
Text:    Login
Position:    12, 130
Size:    223, 23
ControlClick Coords:    111, 11
Style:    0x5601000B
ExStyle:    0x00000000
Handle:    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 by Zafire
Link to comment
Share on other sites

... just a wild guess to try

ControlClick("[CLASS:WindowsForms10.Window.8.app.0.33c0d9d]", "", "[ID:2228998]")

or

ControlClick("[CLASS:WindowsForms10.Window.8.app.0.33c0d9d]", "", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d; INSTANCE:1]")

good luck ...

Edited by Chimp

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

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