Tukata Posted January 24, 2007 Share Posted January 24, 2007 Hi, How can I read a specific line from unicode txt file (Thai script) and sent it to clipboard ? Thank you Tuk Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 24, 2007 Moderators Share Posted January 24, 2007 Hi,How can I read a specific line from unicode txt file (Thai script) and sent it to clipboard ?Thank youTukhttp://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 More sharing options...
Tukata Posted January 24, 2007 Author Share Posted January 24, 2007 http://www.autoitscript.com/forum/index.ph...15&hl=ANSI#+ _FileReadToArray() or FileReadLine() if you know what the line number is.Thanks for the link. I will try to understand it.I get the number line using CMD from another application.Tuk Link to comment Share on other sites More sharing options...
Tukata Posted January 25, 2007 Author Share Posted January 25, 2007 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 More sharing options...
Moderators SmOke_N Posted January 25, 2007 Moderators Share Posted January 25, 2007 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 More sharing options...
Tukata Posted January 28, 2007 Author Share Posted January 28, 2007 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 28, 2007 Moderators Share Posted January 28, 2007 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 More sharing options...
Infinitex0 Posted January 28, 2007 Share Posted January 28, 2007 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 More sharing options...
Moderators SmOke_N Posted January 28, 2007 Moderators Share Posted January 28, 2007 lol, wow, I can't believe your still here Smoke. I'm not here, it's a figment of your imagination 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 More sharing options...
Infinitex0 Posted January 28, 2007 Share Posted January 28, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now