Jump to content

Read from unicode txt file ?


Tukata
 Share

Recommended Posts

  • Moderators

Hi,

How can I read a specific line from unicode txt file (Thai script) and sent it to clipboard ?

Thank you

Tuk

http://www.autoitscript.com/forum/index.ph...15&hl=ANSI#

+ _FileReadToArray() or FileReadLine() if you know what the line number is.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I tried this script from the link above but got no unicode.

What I do wrong ?

And how do I read for example line 5 ?

Thank you

Tuk

#include "Unicode.au3"

$File1 = FileOpen("C:\Unicode.txt", 4); 4 - raw read mode
$Unicode = FileRead($File1, FileGetSize("C:\Unicode.txt"))
$AscString = Unicode2Asc($Unicode)
FileClose ($File1)
ClipPut ( "$AscString" )
MsgBox(0,"", $AscString)

.

Link to comment
Share on other sites

  • Moderators

I tried this script from the link above but got no unicode.

What I do wrong ?

And how do I read for example line 5 ?

Thank you

Tuk

#include "Unicode.au3"

$File1 = FileOpen("C:\Unicode.txt", 4); 4 - raw read mode
$Unicode = FileRead($File1, FileGetSize("C:\Unicode.txt"))
$AscString = Unicode2Asc($Unicode)
FileClose ($File1)
ClipPut ( "$AscString" )
MsgBox(0,"", $AscString)

.

Is it unicode or utf-8? Without the file itself, there's really no chance of anyone helping you with that one :).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Can somebody please write the script for me ?

:)

I will for $20.00

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

lol, wow, I can't believe your still here Smoke.

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Link to comment
Share on other sites

  • Moderators

lol, wow, I can't believe your still here Smoke.

:) I'm not here, it's a figment of your imagination :D

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

:) well neither am I, you just miss me so much your going insane and seeing posts that don't exist.......................DO YOU EVEN REMEMBER ME???

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

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...