minecraft typing script

Ask gaming related questions (AHK v1.1 and older)
sexyrussian
Posts: 2
Joined: 06 Dec 2017, 04:15

minecraft typing script

11 Dec 2017, 00:44

hey,
I've been making this script, it's supposed to type messages from file into minecraft.
unfortunately i've ran into complications that make it impossible.

Code: Select all

Sleep, 1000
Loop, Read, stuff.txt
{
send t
sleep, 100
	ClipBoard := A_LoopReadLine
	sleep 700

	Send, ^v
	sleep, 700
	Send {enter}

	Sleep, 2000
}
The results are very inconsistent. Before, it was a lot worse, a lot of actions didnt happen, so I added the pauses. But now the issue is that 50% of the time, ^v won't happen.

why is this?

Also it's the issue with the minecraft client, in notepad it's always consistent.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: minecraft typing script

11 Dec 2017, 02:16

You don't need any Sleep between ClipBoard := A_LoopReadLine and Send, ^v. You could try increasing some of the other Sleeps, or looking for some way to confirm success, instead of using Sleep.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 84 guests