Rules for inputting commands, ip addresses and such with AHK macros/scripts.
4 years ago
Canada

I am writing an AHK script for cooperative speedrunning server resetting that needs to input server ip addresses and the /stop command. I know that there is a 70 ms requirement for inputs but am wondering if something like:

Send, t Sleep, 70 Send, /stop Sleep, 70 Send, {Enter}

Is acceptable (it send the entirety of /stop all at once, as if pasted in) or would it count as multiple inputs and have to be split up like this:

Send, t Sleep, 70 Send, / Sleep, 70 Send, s Sleep, 70 Send, t Sleep, 70 Send, o Sleep, 70 Send, p Sleep, 70 Send, {Enter}

I suspect and hope it is acceptable as it would make the script/macro a heck of a lot easier to write and it would also perform faster.

I would like an answer citing someone of authority or a direct answer from someone of authority.

Edited by the author 4 years ago
Germany

the first variant would also work

Also I would extend the waiting time at least to 100 if 70 is required or you could desync because of lag

Edited by the author 4 years ago
Canada

I know the first one would work, but is it allowed?