Jump to content

ControlClick for ADWCleaner (Solved)


Recommended Posts

Hi, 

First sorry for my bad english, then, i am trying to automated ADWCleaner with AutoIt. I don't really understand how to use the ControlClick function i have tried something like that:

WinWaitActive("Malwarebytes AdwCleaner 6.047")

ControlClick("Malwarebytes AdwCleaner 6.047", "Analyser", "[Class:Button; Instance:5]")

But its not working, the name of the window is correct cause when she became activate, the script stop but without clicking.

With AutoIt Window Info i have this.

>>>> Window <<<<
Title:    Malwarebytes AdwCleaner 6.047
Class:    AutoIt v3 GUI
Position:    806, 310
Size:    644, 338
Style:    0x14CE0000
ExStyle:    0x00000100
Handle:    0x00040448

>>>> Control <<<<
Class:    Button
Instance:    5
ClassnameNN:    Button5
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:5]
ID:    49
Text:    Actions
Position:    10, 173
Size:    605, 80
ControlClick Coords:    93, 49
Style:    0x50020007
ExStyle:    0x00000000
Handle:    0x00040496

>>>> Mouse <<<<
Position:    917, 582
Cursor ID:    0
Color:    0xDADADA

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
En attente.
AdwCleaner fait maintenant partie de Malwarebytes.  En savoir plus à propos des solutions pour particuliers et entreprises.
Analyser
Nettoyer
Rapport
Actions


>>>> Hidden Text <<<<
0 menaces trouvées
 

 

Thanks for the help !

Edited by Arcanne
Link to comment
Share on other sites

  • Moderators

@Arcanne please do not bump your topic without waiting at least 24 hours. We have forum members from all over the world that volunteer their time helping; show some patience and give them a chance please :)

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Hello.  Check AutoIt help file.

 

ControlClick("Malwarebytes AdwCleaner 6.047","","Button5")

 

Saludos

Link to comment
Share on other sites

Hello the correct Button instance is 1 do this.

#RequireAdmin
WinActivate("Malwarebytes AdwCleaner 6.047")
ControlClick("Malwarebytes AdwCleaner 6.047","","Button1")

Saludos

Link to comment
Share on other sites

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