Jump to content

Recommended Posts

Posted (edited)

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
  • Moderators
Posted

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

Posted

Hello.  Check AutoIt help file.

 

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

 

Saludos

Posted (edited)

thank you @Danyfirex  but it's not working. The script not clicking :(

Its working on your computer?

And how did you find that its Button5?

And sorry @JLogan3o13 ;) i will be more patient ^^

 

Edited by Arcanne
Posted

Hello the correct Button instance is 1 do this.

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

Saludos

Posted

Hello @Subz i just want to have an automatic run of ADWCleaner :)

@Danyfirex i have try but again the app not start the analysis, is it possible that an app block scripts like autoIt to interact? I have the same problem, the script stop when the ADWCleaner window is active :(

Thank you again for the help @Danyfirex !

Posted

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