Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoTrayIcon
- #SingleInstance force
- SetBatchLines -1
- InputFile := "hex.txt"
- OutputFile := "out.ahk"
- MyLenght := "1024"
- Position := "1"
- Fileread, Hex, % InputFile
- Loop, % (StrLen(Hex)/MyLenght)
- {
- if (Position == "1")
- Output = % "var=`n" SubStr(Hex, Position, MyLenght) "`n)`n"
- else
- Output = % Output "var=`%var`%`n" SubStr(Hex, Position, MyLenght) "`n)`n"
- Position := Position + MyLenght
- }
- FileAppend, % Output, % OutputFile
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment