Jump to content

Ctrl+Click Not ControlClick()


Recommended Posts

I've been using AutoIt for a couple of years now, but today I've encountered a problem that I just can't work out.

I'm attempting to issue a Left Control + Left Mouse Button Click. So far I have failed amazingly... including locking up the PC into a loop of continuous Left Control commands (that was fun to trouble shoot).

From what I've read this should do the trick...

Send("{LCTRL DOWN}")
MouseClick("left", $AtPosX, $AtPosY)
Send("{LCTRL UP}")

But alas it does not. Anyone have some suggestions?

Thanks!

Link to comment
Share on other sites

try mousedown, then Send("{LCTRL DOWN}")

Awesome... the reverse worked! I didn't think to try that since I thought of clicking as doing the same thing, but I guess that minor delay in the commands makes the difference!

Thank you so much!

Link to comment
Share on other sites

welcome

:)

Oh dear I was a bit hasty in my enthusiasm. Now I can't seem to get out of the control button getting stuck down. I've tried a large series of

UPs and normal sends but nothing seems to get it unstuck besides manually pushing the control key.

Send("{LCTRL DOWN}")
            MouseDown("left")
            Sleep(200)
            MouseUp("left")
            Send("{LCTRL UP}")
            Sleep(200)  
            Send("{LCTRL}")
            Sleep(200)
            Send("{LCTRL}")
            Sleep(200)
            Send("{LCTRL}")
            Sleep(200)
            Send("{LCTRL}")
            Sleep(200)  
            Send("{LCTRL}")
            Sleep(200)
            Send("{LCTRL}")
            Sleep(200)
            Send("{LCTRL}")
            Sleep(200)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...