Jump to content

Recommended Posts

  • Moderators
Posted

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.

Posted

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)

.

  • Moderators
Posted

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.

Posted

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

  • Moderators
Posted

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.

Posted

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]

  • Moderators
Posted

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.

Posted
:) 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]

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
  • Recently Browsing   0 members

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