Sign in to follow this  
Followers 0
Tukata

Read from unicode txt file ?

10 posts in this topic

Hi,

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

Thank you

Tuk

Share this post


Link to post
Share on other sites



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.


[center]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.[/center]

Share this post


Link to post
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)

.

Share this post


Link to post
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)

.

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

The TXT file was saved as unicode and not as utf-8.

Can somebody please write the script for me ?

(I am not expert in this)

Thank you in advance

Tuk

Share this post


Link to post
Share on other sites

Can somebody please write the script for me ?

:)

I will for $20.00


[center]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.[/center]

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

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

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

[center]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.[/center]

Share this post


Link to post
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]

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  
Followers 0