copyleft Posted January 17, 2021 Posted January 17, 2021 I have a setup window where I can tab through the control buttons. However, the setup window won't respond to the "Enter" key. Is there a way to execute a mouse click at the highlighted control? That way I can use "Tab" to get to the correct control button and then execute the MouseClick command. Thanks in advance.
copyleft Posted January 17, 2021 Author Posted January 17, 2021 (edited) I have a setup window where I can tab through the control buttons. However, the setup window won't respond to the "Enter" key. Is there a way to execute a mouse click at the highlighted control? That way I can use "Tab" to get to the correct control button and then execute the MouseClick command. X & Y coordinates won't work because of different screen resolutions. Thanks in advance. MODERATOR: Please delete duplicate question with different title. I am unable to do so. Edited January 17, 2021 by copyleft
Nine Posted January 17, 2021 Posted January 17, 2021 Short answer : Yes. Depends. With no information at all, cannot say what solution it would be. You do know about the crystal ball, right ? “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
copyleft Posted January 18, 2021 Author Posted January 18, 2021 (edited) OK. I don't know how helpful this code will be but this is the section I'm having issues with #RequireAdmin #include <AutoItConstants.au3> winwaitclose ("Their Installer", "") Local $hWnd = WinWait("[CLASS:my.installer; Instance:1]", "", 3) ControlClick($hWnd, "", "") MouseClick($MOUSE_CLICK_PRIMARY, 1275, 825, 2) sleep(2000) send ("{tab 4}"); this highlights the appopriate button sleep(1000) send ("{enter}"); this won't activate the button; I need a manual mouse click but button doesn't have a number or control description Edited January 18, 2021 by copyleft
Nine Posted January 18, 2021 Posted January 18, 2021 We have no use of this code. You did not say it was about another installer issue. Just take a moment to look at the current first page of this forum section, you will notice a number of those attempts to blindly install software with mouse click and send. All are failing, I believe it has been discussed way too many times. “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