Jump to content

Recommended Posts

Posted (edited)

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

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

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