Tick Posted April 13, 2021 Posted April 13, 2021 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.
Tick Posted April 13, 2021 Author Posted April 13, 2021 $hWnd=WinGetHandle ("Main window") ControlClick($hWnd,"[CLASS:AfxWnd140; INSTANCE:24]",1,1,1) This is not working.
seadoggie01 Posted April 13, 2021 Posted April 13, 2021 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. Tick 1 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 functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now