Jump to content

Recommended Posts

the main window has a AfxWnd140 element. I can't figure out how to click on a specific place on this element.

$hWnd = WinGetHandle("[CLASS:AfxWnd140; INSTANCE:24]")

returns non-zero value. There are two buttons on it, but I can't see their parameters. I just want to click on a certain place inside.

Thanks.

 

Link to post
Share on other sites
ControlClick("Title or Hwnd", "Text", $iControlID, "Mouse button", $iClickCount, $iXPosControl, $iYPosControl)

Note the number of parameters here. 1 is not a valid mouse button. Please see the help file :)

Use Au3Info to get the Control ID information. If it doesn't show a value, then you'll need to use UI Automation.

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...