numberz91 Posted June 7, 2022 Posted June 7, 2022 Hello, I am fairly new to Auto IT however, I ran into an issue when trying to ControlClick() on a tab in this one program. I was able to get the window handle and activate it and then I was able to get the control handle of the tab menu. But when I use ControlClick() with the two handles and with the ControlClick coords, it does not work. I tested MouseClick() and that works but I don't like using MouseClick() since it isn't as reliable as ControlClick(). Here is my code: The window appears and is maximized perfectly fine, and when I get the $tabs handle I get the correct handle for the tab menu (checking it via the console output). The problem is the control click (I put 5 clicks just to test what would happen but nothing happened). Anyway, the MouseClick above it that is commented out works, but I want to find out why the ControlClick does not work. Hopefully there is a solution. Thanks
Nine Posted June 7, 2022 Posted June 7, 2022 When you post code, please use tags as described in the link. Your issue may come from the fact that MouseClick defaults to absolute screen coordinates, whereas ControlClick uses control coordinates. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
ubosco Posted August 3, 2022 Posted August 3, 2022 To find out what isn't working, try using consoleWrites. Attempt to ignore the controlId. Simply use the title and content, followed by "",... Did you ever set the option to allow the use of classes? cookie clicker
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