Wanna Block Input

Ask gaming related questions (AHK v1.1 and older)
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Wanna Block Input

31 Jan 2021, 06:06

I want to Run this code while Pressing Space thats Working. Bud i want during i Press Space there is Space Not pressed, so if i have Space on Jump ingame as long as i run the script and i press jump ingame it shoud not perform a jump even its binded on that. Like register i Press Space bud not sen a press Space to the running Game.

Code: Select all

~Space::
While, GetKeyState("Space","P") {
	ImageSearch, X, Y, 1103, 1298, 1158, 1352, *120 Ready.bmp
	if !ErrorLevel {
		Send, {w}
		Sleep, 40
		Send, {w Up}
		Sleep, 40
	}
	ImageSearch, X, Y, 1103, 1298, 1158, 1352, *120 Gold.bmp
	if !ErrorLevel {
		Send, {w}
		Sleep, 40
		Send, {w Up}
		Sleep, 40
	}
}
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Wanna Block Input

31 Jan 2021, 07:10

Hallo,
if the Space key is important for the operation of your game then use another, unimportant key for the operation of your script!
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Re: Wanna Block Input

31 Jan 2021, 08:41

well that was not the question :thumbdown:

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: mexican scientist and 72 guests