I have a script that takes one line from the specified .txt file, then pastes and presses CTRL+ENTER and does so until the end of the file is reached. It works fine. However, there are lines with Lithuanian symbols, and the pasted line becomes gibberish like į žygį. This must be due to me "pasting" it with the command Sendraw. I need your help in changing the script so that the pasting part is just ctrl+v, because pasting by hand without AHK gets rid of the gibberish. Code below
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Sleep, 2000
Loop
{
FileReadLine, line, C:\Users\Rytis\Desktop\testuojam.txt, %A_Index%
{
Sendraw %line%
Send ^{enter}
Sleep, 3000
}
}
return
!Escape:: exitapp