Jump to content
Sign in to follow this  
Azu

Ctrl left clicking?

Recommended Posts

Azu

I'm sorry if this is already answered somewhere but I looked for a long time and couldn't find what I'm looking for..

I'm trying to ctrl left click using autoit but it isn't working, it's just normal left clicking..

ControlSend("Something","","","{CTRLDOWN}")
Sleep(Random(50, 100, 1))
MouseClick("left", 100, 100, 1, $MouseSpeed)
Sleep(Random(50, 100, 1))
ControlSend("Something","","","{CTRLUP}")

Any idea what's wrong with my code?

Share this post


Link to post
Share on other sites
Briegel

ControlSend ( "title", "text", controlID, "string" [, flag] )

Where is your controlID?

Share this post


Link to post
Share on other sites
Azu

Thanks Manadar, it works perfectly now! And Briegel.. I don't know what a controlID is, sorry. :S

Share this post


Link to post
Share on other sites
jvanegmond

You're welcome.

A Control ID is a number designated to a certain control (Look in the helpfile for what controls are), this allows you and the author of the program to interact with that certain control.

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.