Jump to content

Multiple buttons with no id - split


Recommended Posts

I am having a similar issue. Just need to hit one button, the window for button has no title. Have tried several variations, but the button is never clicked.

WinActivate("[CLASS:Button; INSTANCE:1]")
ControlClick("[CLASS:Button; INSTANCE:1]", "", 2, button = "primary", clicks = 1)

>>>> Window <<<<
Title:    
Class:    #32770
Position:    477, 319
Size:    417, 143
Style:    0x94C801C5
ExStyle:    0x00010101
Handle:    0x000000000002043E

>>>> Control <<<<
Class:    Button
Instance:    1
ClassnameNN:    Button1
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:1]
ID:    2
Text:    OK
Position:    321, 81
Size:    75, 23
ControlClick Coords:    42, 15
Style:    0x50030000
ExStyle:    0x00000004
Handle:    0x00000000000C03B2

>>>> Mouse <<<<
Position:    366, 122
Cursor ID:    0
Color:    0xE1E1E1

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

Link to comment
Share on other sites

  • Developers

Your topic is not the same at all, so split it into a separate topic.

I think you have some mixup in the first 2 parameters of both functions as they need to contains the Window information, not the control information.
Parameter 3 should be the Control information.
Check the helpfile for the details.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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