Jump to content

How to click on afxwnd?


Tick
 Share

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 comment
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
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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