Jump to content
Sign in to follow this  

controlclick problem

Recommended Posts



I am trying to install adobe lightroom using Autoit.

I can install but when i need to push the button to complete the registration it doesnt work.

I have read the forum and the helpfile but it seems like nothing works.

Here is the info from auto it tool :

>>>> Window <<<<

Title: Lightroom

Class: Afx:00400000:0

Position: 564, 102

Size: 706, 520

Style: 0x96C80000

ExStyle: 0x000C0101

Handle: 0x0007012C

>>>> Control <<<<

Class: Button

Instance: 11

ClassnameNN: Button11


Advanced (Class): [CLASS:Button; INSTANCE:11]

ID: 100

Text: Voltooien

Position: 460, 451

Size: 111, 27

ControlClick Coords: 39, 16

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x000301F0

>>>> Mouse <<<<

Position: 1066, 598

Cursor ID: 0

Color: 0xF0F4F9

Hope someone can help cause it is driving me nuts...

Posted Image

Edited by mrm3th

Share this post

Link to post
Share on other sites

Try this:

$hWin = WinGetHandle("[CLASS:Afx:00400000:0; TITLE:Lightroom]", "")
$hControl = ControlGetHandle($hWin, "", "[CLASS:Button; INSTANCE:11]")
ControlClick($hWin, "", $hControl)
MsgBox(64, "Results", "$hWin = " & $hWin & @CRLF & "$hControl = " & $hControl)


P.S. Kudos for posting the required info. :)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.