Jump to content

Why this controlclick doesn't work


Recommended Posts

Hey everyone,

I am trying to send mouseclick to control, but just cant understand why it doesnt work. Please help as I might brake something useful in my head... Commands I've tried:
 

ControlClick("Logs","Clear","[CLASS: WindowsForms10.Window.8.app.0.141b42a_r10_ad1; INSTANCE:1]")
ControlClick("Logs","Clear","[CLASS: WindowsForms10.STATIC.app.0.141b42a_r10_ad1; INSTANCE:1]")
ControlClick("Logs","Clear","[CLASS: WindowsForms10.STATIC.app.0.141b42a_r10_ad11; INSTANCE:1]")
ControlClick("Logs","Clear","[ID: 593764]")
ControlClick("Logs","Clear",593764)

ControlClick("Logs","","[CLASS: WindowsForms10.Window.8.app.0.141b42a_r10_ad1; INSTANCE:1]")
ControlClick("Logs","","[CLASS: WindowsForms10.STATIC.app.0.141b42a_r10_ad1; INSTANCE:1]")
ControlClick("Logs","","[CLASS: WindowsForms10.STATIC.app.0.141b42a_r10_ad11; INSTANCE:1]")
ControlClick("Logs","","[ID: 593764]")
ControlClick("Logs","",593764)

And all the combinations with 

WinActivate("Logs")

Attached is the screenshot of Autoit Info window. Is it me? Or some "unclickable" control?

Spoiler

logs.jpg

Edited by Wisenlucky
Link to comment
Share on other sites

  • Developers

@Wisenlucky, Why post in a thread which is 6 years old and not really related? It's better to start your own new thread in cases like this.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

@Wisenlucky is this the Event Viewer logs or some other application? Can you be more specific as to what it is? Depending on the app, there may be a much easier way to clear the logs than clicking with the mouse.

"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

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