Jump to content
Sign in to follow this  

Copying lines from txt document

Recommended Posts



I want to copy lines of text from a document to where the mouse is positioned. It works but the majority of people using this are Russian and their default keyboard layout is Russian.

Send($aLines[$i], 1)


So this simulates keys being pressed but since the keyboard is Russian, it will be sent in Russian. Obviously the keyboard layout can be changed but can you tell me please is there any other way to do this so that people don't have to change the keyboard every time?

$hFile=FileOpen("BanList.txt", 0)
    $sText = FileRead($hFile)
$aLines = StringSplit(StringStripCR($sText), @LF)
    If @error = 0 Then
        For $i = 1 To $aLines[0]
            MouseClick("Left", 76, 645, 3)
            Send($aLines[$i], 1)
            Sleep ($Interval2)
            $UserLogString=StringTrimLeft($aLines[$i], 5)
            $UserLogFile = FileOpen("UserLog.txt", 1)
            FileWriteLine($UserLogFile, $UserLogString&@CRLF)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.