CSGO constantly press CTRL

Ask gaming related questions
Kaine
Posts: 1
Joined: 30 Jan 2016, 17:55

CSGO constantly press CTRL

30 Jan 2016, 18:23

Code: Select all

   
F2::
If State=50
State=Off
else
State=50
SetTimer SendKey, %State%
Return

SendKey:
Send Ctrl
Return
Okay..

What I am trying to accomplish is making a script which will constantly press the keyboard button CTRL in CSGO (Counter Strike Global Offensive) (which means DUCK)

I've read that a lot of games blocks AHK's, and that you need to bypass it. If someone could help me out with this I would really appreciate it. Also I am aware that CTRL is not actually the key? CTRL = ^

Thanks.



EDIT:

Code: Select all

   
#NoEnv
SendMode Input
MsgBox Credits go to 'Ifrit'
 
Numpad0:: Hotkey, *~$Space, Toggle
Numpad1:: Hotkey, *~$LButton, Toggle
 
End::
ExitApp
 
*~$LButton::
    while GetKeyState("space")
    {    
		DllCall("mouse_event", uint, 1, int, 0, int, 3, uint, 0, int, 0)
		Sleep, 15
		DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
		Sleep, 5
    }
Return
 
*~$Space::
	{
Loop
		GetKeyState, SpaceState, Space, P
		If SpaceState = U
			break 
		Sleep 6
		Send, {Blind}{Space}
	}
Return
I found this code and it works, it makes u automatically jump when you hold space. So could anyone modify this to press CTRL instead of space? :D

Return to “Gaming”

Who is online

Users browsing this forum: Google [Bot] and 20 guests