Dùng sleep ở đầu loop tốt hơn là ở cuối loop
My code:
#Requires AutoHotkey v2.0+
TextToSend := FileRead("textToSend.txt")
lines := StrSplit(TextToSend, "\n")
:*:st::{
Loop
{
SetKeyDelay 10000
Send(lines[A_Index])
Send, {Enter}
Sleep 10000
}
}
It used to work fine, but now the lines are rearranged. Say one line is:
Then it is sent as:
Nguồn:: autohotkey - Why would Send rearrange string? - Stack Overflow