Arcanne

ControlClick for ADWCleaner (Solved)

12 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#2 ·  Posted

Any idea?

Share this post


Link to post
Share on other sites

#3 ·  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 :)

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#4 ·  Posted

Hello.  Check AutoIt help file.

 

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

 

Saludos

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

#6 ·  Posted

No ideas ?

Share this post


Link to post
Share on other sites

#7 ·  Posted

What exactly are you trying to do?

Share this post


Link to post
Share on other sites

#8 ·  Posted

Hello the correct Button instance is 1 do this.

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

Saludos

1 person likes this

Share this post


Link to post
Share on other sites

#9 ·  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 !

Share this post


Link to post
Share on other sites

#10 ·  Posted

It's working right for me.

gKwlNhU.gif

Saludos

1 person likes this

Share this post


Link to post
Share on other sites

#11 ·  Posted

@Danyfirex Sorry, i forget to build and compile :P beginner errror ;)

Thanks a lot for the help :) how to close topic? :)

Share this post


Link to post
Share on other sites

#12 ·  Posted

You can edit your topic's title add  (SOLVED)

You're welcome

Saludos

1 person likes this

Share this post


Link to post
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