Jump to content
Sign in to follow this  
asdfxyz13

AutoIT: can't click button Run Cleaner

Recommended Posts

asdfxyz13

hello any Ones

I'm newbie autoIT, please help me click button Run Cleaner

1). I use Imange Search 

$a = _ImageSearch("cclean.bmp","Piriform CCleaner - Professional Edition")

_ArrayDisplay($a)

But _ArrayDisplay($a) return 0 -->can't found image --> can't click button Run Cleaner

 

2). I use MouseClick

WinActivate("Piriform CCleaner - Professional Edition","")

MouseClick('left',1281, 536)
Sleep(1000)

--> mouse move right this button but not click button Run Cleaner

thanks a lot!

cclean.jpg

Share this post


Link to post
Share on other sites
JLogan3o13

Why not use the supported command line method, creating an .ini with your saved preferences and the running the executable against that?

https://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters

Would save you from having to automate the GUI


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

How to get your question answered on this forum!

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
Sign in to follow this  

×