BPGraves Posted March 15, 2024 Posted March 15, 2024 It seems all the articles that I've read here are flagging for gaming issue violations but I am not doing this for any game whatsoever...this is for work. The following command works fine: MouseClick("left",1679,141,1) However, the following CommandClick commands don't perform any mouse movement or button clicking: ControlClick($id, "", "", "left",1,967,169) ;$id is from WinGetHandle() ControlClick($id, "", "", "left",1,1679,141) ;$id is from WinGetHandle() ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "", "left",1,967,169) ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "", "left",1,1679,141) ControlClick($id, "", "[CLASS:Button; INSTANCE:1]", "left",1,1679,141) ;$id is from WinGetHandle() ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "[CLASS:Button; INSTANCE:1]", "left",1,1679,141) Yes, I realize that I'm passing blank for the controlID parameter for some of these but the AutoIt Finder tool doesn't show anything under the Control tab for Lightspeed: Question: is there a default controlID parameter that I can pass so ControlClick will use the entire window screen like MouseClick does instead a control (that I don't have)? Please don't reply telling me to just use MouseClick() because I can't: this needs to run for a scheduled task that doesn't have an Active window. I've tried _MouseClickPlus and this doesn't do anything with the mouse so I'm not sure if there's something else I can try.
Nine Posted March 15, 2024 Posted March 15, 2024 You may try to use UIAutomation “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
BPGraves Posted March 15, 2024 Author Posted March 15, 2024 1 hour ago, Nine said: You may try to use UIAutomation I tried using the UIASpy but it just puts a red box around the entire pane and I can't find any Control IDs in the tool to use in order to select a license or click a button.
Nine Posted March 15, 2024 Posted March 15, 2024 Just notice it is a SunAwtFrame, if UIAutomation can't see inside the frame, then I suggest you take a look at JAB (Java Access Bridge). That's where I hope someone else can further help you, as this is something I never study. “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
BPGraves Posted March 15, 2024 Author Posted March 15, 2024 22 minutes ago, Nine said: Just notice it is a SunAwtFrame, if UIAutomation can't see inside the frame, then I suggest you take a look at JAB (Java Access Bridge). That's where I hope someone else can further help you, as this is something I never study. Is that an AutoIt utility? Or a different AutoIt Forum? Or are you saying that AutoIt doesn't (or can't) work with SunAwtFrame?
Nine Posted March 15, 2024 Posted March 15, 2024 JAB is essentially a dll that you can call from AutoIt. Google will tell you more about it. I also believe there are some early attempts here using the dll. “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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