Mouse moving in game when there is no code for it

Ask gaming related questions (AHK v1.1 and older)
xMagicWarriorx
Posts: 1
Joined: 20 Apr 2021, 03:02

Mouse moving in game when there is no code for it

20 Apr 2021, 03:27

So i made a script for mining in minecraft on while it isnt focused. It is mining 10x2 stone gens, while facing upwards.

Code: Select all

Numpad7::
Loop {
ControlClick,, Minecraft 1.8,,,, D
Sleep 100
	Loop, 15 {
	ControlSend,, {a down}, Minecraft 1.8
	Sleep 1600
	ControlSend,, {a up}, Minecraft 1.8
	ControlSend,, {w down}, Minecraft 1.8
	Sleep 250
	ControlSend,, {w up}, Minecraft 1.8
	ControlSend,, {d down}, Minecraft 1.8
	Sleep 1600
	ControlSend,, {d up}, Minecraft 1.8
	ControlSend,, {s down}, Minecraft 1.8
	Sleep 250
	ControlSend,, {s up}, Minecraft 1.8
	}
ControlClick,, Minecraft 1.8,,,, U
Sleep 100
ControlSend,, /, Minecraft 1.8
Sleep 100
ControlSend,, {Up}, Minecraft 1.8
Sleep 100
ControlSend,, {Enter}, Minecraft 1.8
Sleep 100
ControlSend,, /, Minecraft 1.8
Sleep 100
ControlSend,, {Up}, Minecraft 1.8
Sleep 100
ControlSend,, {Up}, Minecraft 1.8
Sleep 100
ControlSend,, {Enter}, Minecraft 1.8
Sleep 100
}
return

Numpad4::
Reload
return
The problem is i don't want the mouse to move as it causes me to mine wrong blocks. I'm not sure what is causing it. I think it's because ControlClick uses some default coordinates to click but I don't know to disable it (I want to just make it hold LMB, and don't move mouse).
User avatar
mikeyww
Posts: 26942
Joined: 09 Sep 2014, 18:38

Re: Mouse moving in game when there is no code for it

20 Apr 2021, 06:13

I don't see any move commands. This should be easy to debug, because you could remove lines, one by one, until the problem disappears. You will have then pinpointed the problem.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: yuu453 and 83 guests