left ctrl not working

Ask gaming related questions (AHK v1.1 and older)
Mido
Posts: 3
Joined: 30 Jul 2021, 20:23

left ctrl not working

30 Jul 2021, 20:27

As you can see I found this but left ctrl isn't working, any help please? all of it is working perfectly except that

Code: Select all

^a::Goto, Start ;This makes CTRL+A go to the Start block... 

Start: 
Loop, 
{ 
MouseClick, left
Sleep, 200

Send {L Ctrl}
Sleep, 250 ;This means the script will wait 1 secs 

MouseClick, right 
Sleep, 200 ;This means the script will wait 1 secs 
} 

^x::Pause ;This makes CTRL+X pause the program.
ctags
Mido
Posts: 3
Joined: 30 Jul 2021, 20:23

Re: As you can see I found this but left ctrl isn't working, any help please? all of it is working perfectly except that

30 Jul 2021, 20:59

mikeyww wrote:
30 Jul 2021, 20:44
Remove the space before Ctrl.

Explained: List of keys
I tried but didn't work
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: As you can see I found this but left ctrl isn't working, any help please? all of it is working perfectly except that

30 Jul 2021, 21:12

What is the target program? What happens when you run the script? What should happen instead? Which window is active when the Send command executes?
Mido
Posts: 3
Joined: 30 Jul 2021, 20:23

Re: As you can see I found this but left ctrl isn't working, any help please? all of it is working perfectly except that

30 Jul 2021, 23:57

mikeyww wrote:
30 Jul 2021, 21:12
What is the target program? What happens when you run the script? What should happen instead? Which window is active when the Send command executes?
I use it in conquer, this button [l ctrl] + left mouse click makes you jump. What happens is the everything in this script works except sending Left ctrl.
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: left ctrl not working

31 Jul 2021, 07:26

When you send {LCtrl} by itself, the button goes down and then up. To keep it down with a click instead, use one of the following.

Code: Select all

Send ^{LButton}
Send ^{RButton}
Another method:

Code: Select all

Send {LCtrl down}{LButton}{LCtrl up}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 64 guests