Jump to content

Recommended Posts

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

45b8f2491e8e5217ef565b4b67044968.png

This is what I get from AutoIt window info tool

  Reveal hidden contents

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

  Reveal hidden contents

>>>> 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
Posted (edited)

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

Posted
  On 12/20/2015 at 11:43 PM, Zafire said:

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! ^_^

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...