daywalkereg Posted July 31, 2007 Share Posted July 31, 2007 i want to make so called language translator it supposed that i give him a folder and it rename every file in the folder but not translation ; conversion from Arabic letter to English letter. example convert (أ ) to (a) and so on can any help with little example i really need that program 1 £0\\/3 |-|3® $0 |\\/|µ(|-| Link to comment Share on other sites More sharing options...
qsek Posted August 1, 2007 Share Posted August 1, 2007 well if you only want to replace the letters, this is really no big deal. Work with FileFindFirstFile, FileFindNextFile and FileMove to rename the Files. Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite Link to comment Share on other sites More sharing options...
daywalkereg Posted August 1, 2007 Author Share Posted August 1, 2007 can any 1 give example 1 £0\\/3 |-|3® $0 |\\/|µ(|-| Link to comment Share on other sites More sharing options...
qsek Posted August 1, 2007 Share Posted August 1, 2007 Look in Help file in the Autoit3 Directory, search for the functions i wrote above, there is one example to every function. Really simple. It seems that you are more interested in getting the work for you done rather than trying and learning for youself. In this case you wont get many Replys here. But if you have problems on the way doing your stuff, we will always try to help. Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite Link to comment Share on other sites More sharing options...
daywalkereg Posted August 2, 2007 Author Share Posted August 2, 2007 no,no,no i can use these three funtions but 1 want an example how to rename only 1 £0\\/3 |-|3® $0 |\\/|µ(|-| Link to comment Share on other sites More sharing options...
martin Posted August 2, 2007 Share Posted August 2, 2007 no,no,no i can use these three funtions but 1 want an example how to rename onlyFileMove is used to rename a fileFilemove("oldname","newname",1) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
daywalkereg Posted August 2, 2007 Author Share Posted August 2, 2007 thanx martin but i want to tell the program that if file name found contain arabic letter replace it with english letter 1 £0\\/3 |-|3® $0 |\\/|µ(|-| Link to comment Share on other sites More sharing options...
qsek Posted August 2, 2007 Share Posted August 2, 2007 (edited) basically you need the StringReplace Function. I would put all arabic letters in a array and Replace every letter in the String with a For/Next Loop. It would look like this: $str = "¢ÖÀæÖèÃ" Dim $eng[30] = ["a","b","c"] ;~ and so on, all english letters in alphabetic order Dim $arab[30] = ["æ","Ã","¢"] ;~ and so on, all arabic letters in alphabetic order $newstr = $str for $i = 0 to Ubound($arab)-1 $tempstr = StringReplace($newstr,$arab[$i],$eng[$i]) If $tempstr = "" Then ContinueLoop $newstr = $tempstr MsgBox(0,"Temp String",$newstr) Next MsgBox(0,"End String",$newstr) Edited August 2, 2007 by qsek Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite Link to comment Share on other sites More sharing options...
daywalkereg Posted August 2, 2007 Author Share Posted August 2, 2007 ok thanx i made it any idias how to save it with the new name 1 £0\\/3 |-|3® $0 |\\/|µ(|-| Link to comment Share on other sites More sharing options...
qsek Posted August 2, 2007 Share Posted August 2, 2007 (edited) ok thanx i made it any idias how to save it with the new namelike martin wrote above use FileMove to rename, and it would be cool if you dont post two identical topics in the same forum thx Edited August 2, 2007 by qsek Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite 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