Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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

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

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