Wierd movements

Ask gaming related questions (AHK v1.1 and older)
ugzb
Posts: 1
Joined: 14 Jul 2017, 14:12

Wierd movements

14 Jul 2017, 14:23

Hello
Well, here is a another new AHK gamer with a problem :)
I made this little script for Minecraft:

Code: Select all

^ü::
loop, 35
{
	Click right
	Sleep, 333
	Click 705,445
	Sleep, 500
	Send {w down}
	Sleep 250	
	Send {w up}
	Send {s down}
	Sleep 300	
	Send {s up}
	Sleep, 4000
}
What i want this to do, is click at my current position, wait, click coordinates 705,445, move forward a little, backwards a little. Wait 4s. Repeat 35 times.
My problem is that after the first run, before the Click right command, my mouse moves to the left-upper corner and then the loop starts.
Pls help me, thank you.

#edit
Ok, so i solved this myself:

Code: Select all

^ü::
Loop, 35
{
sleep 200
Click right
Sleep, 500
Click 705,445
sleep 500
Send {Space down}
sleep 200
Send {Space up}
sleep 14000
}
Return
It jumps instead of moving, but does what i need it to do.

Mod edit: Added code tags.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: ReyAHK and 85 guests