Jump to content

Copying lines from txt document


Recommended Posts

Hi

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)

Send("{ENTER}")

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)
    FileClose($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)
            Send("{ENTER}")
            $Zabaneno=$Zabaneno+1
            Sleep ($Interval2)
            $UserLogString=StringTrimLeft($aLines[$i], 5)
            $UserLogFile = FileOpen("UserLog.txt", 1)
            FileWriteLine($UserLogFile, $UserLogString&@CRLF)
            FileClose($UserLogFile)
        Next
    EndIf
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...