Jump to content
Sign in to follow this  
RL008

help with ControlClick

Recommended Posts

RL008

hello!

I am trying to click on control using controlclick function.

It work fine but in a certain control I tried using it like this:

ControlClick("window name","","[Class:Button; Instance:1]","left", 1, 50, 50)

or

ControlClick("window name","","[Class:Button; Instance:1]","", 1, 50, 50)

but it does not work.

if I try "right click" it work so I dont know what is the problem.

ControlClick("window name","","[Class:Button; Instance:1]","right", 1, 50, 50)

Idea anyone?

thank!

Share this post


Link to post
Share on other sites
GodlessSinner

Try this:

ControlSend ( "window name", "", "[Class:Button; Instance:1]", " ")

or

ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{space}")

or

ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{enter}")

- 1 and 2 sends [space] to a button.

Edited by Godless

_____________________________________________________________________________

Share this post


Link to post
Share on other sites
RL008

Try this:

ControlSend ( "window name", "", "[Class:Button; Instance:1]", " ")

or

ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{space}")

or

ControlSend ( "window name", "", "[Class:Button; Instance:1]", "{enter}")

- 1 and 2 sends [space] to a button.

no good...

the control only gets mouse click.

I have to click it but without using mouseclick function.

did anyone had that problem?

its very odd because "right" click does work.

Share this post


Link to post
Share on other sites
RL008

Try "Primary" as your button.

I tyied it and "main" but nothing works..

Share this post


Link to post
Share on other sites
IndyUK

Hi,

Try removing the Window name and just reference the control.

Example.

ControlClick("", "", "[Class:Button; Instance:1]")

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  

×