ahmeddzcom Posted September 22, 2015 Share Posted September 22, 2015 HelloThis Code Convert Names to hex :$sStr = "Dz" $sHex = __StringToHex($sStr) MsgBox(0, "", $sHex) $sConvert = __HexToString($sHex) MsgBox(0, "", $sConvert) Func __StringToHex($sString) Return Hex(StringToBinary($sString)) EndFunc Func __HexToString($sString) If StringLeft($sString, 2) <> "0x" Then $sString = "0x" & $sString Return BinaryToString($sString) EndFuncBut i Need Convert Files to hexTnx. Link to comment Share on other sites More sharing options...
JohnOne Posted September 22, 2015 Share Posted September 22, 2015 (edited) Make $sStr the contents of the file, then write in back to the file.EDIT:you will need just 2 functions... FileRead and FileWrite Edited September 22, 2015 by JohnOne ahmeddzcom 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ahmeddzcom Posted September 22, 2015 Author Share Posted September 22, 2015 (edited) Make $sStr the contents of the file, then write in back to the file.EDIT:you will need just 2 functions... FileRead and FileWriteHiexample plz if you can. Edited September 22, 2015 by ahmeddzcom Link to comment Share on other sites More sharing options...
ahmeddzcom Posted September 23, 2015 Author Share Posted September 23, 2015 can anyone give us exampleTnx. Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2015 Share Posted September 23, 2015 $sometext = FileRead("somepathtofile") ;Process text FileWrite("somepathtofile", $sometext")Sorry but I'm not writing such a simple script for someone who has been around for 3 years.If you cannot do this by now, you might as well train as a PE teacher. ahmeddzcom 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ahmeddzcom Posted September 23, 2015 Author Share Posted September 23, 2015 (edited) $sometext = FileRead("somepathtofile") ;Process text FileWrite("somepathtofile", $sometext")Sorry but I'm not writing such a simple script for someone who has been around for 3 years.If you cannot do this by now, you might as well train as a PE teacher.Tnx John $sStr = FileRead("C:\Users\i7\Desktop\y.txt") $sHex = __StringToHex($sStr) MsgBox(0, "", $sHex) Func __StringToHex($sString) Return Hex(StringToBinary($sString)) EndFunc Edited September 23, 2015 by ahmeddzcom Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2015 Share Posted September 23, 2015 Ace. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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