Jump to content

How to Mouse-Click the highlighted Control


Recommended Posts

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.

Link to post
Share on other sites

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 by copyleft
Link to post
Share on other sites

Short answer : Yes.  Depends.  With no information at all, cannot say what solution it would be.  You do know about the crystal ball, right ?

Link to post
Share on other sites

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 by copyleft
Link to post
Share on other sites

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.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...