Jump to content

Hexadecimal Editor


Joke758
 Share

Recommended Posts

I know the GUI looks like crap..

Don't edit big program because it's kinda slow..

I don't know why but I can't write something when I open a file...

;By Joke758
#include <GUIConstants.au3>

$Form1 = GUICreate("Hexadecimal editor - By Joke758", 683, 553, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 8, 48, 665, 465)
GUICtrlCreateLabel("Hexadecimal editor in AutoIt by Joke758", 184, 8, 327, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Open", 264, 520, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Save", 352, 520, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        If $msg = $button1 Then
            $file = FileOpenDialog ( "Choose a file", "C:\", "Any Files (*.*)" )
            GuiCtrlSetData ( $edit1, StringTrimLeft ( String(BinaryString(FileRead($file) ) ), 2 ) )
        EndIf
       
        If $msg = $button2 Then
            $save = FileSaveDialog ( "Save as..", "C:\", "Any Files (*.*)" )
            $v_executable = '0x' & GuiCtrlRead ( $edit1 )
            Local $h_Open = FileOpen($save, 2)
            FileWrite($h_Open, BinaryString($v_executable))
            FileClose($h_Open)
            MsgBOx ( 64, "Hexadecimal editor", "File saved!" )
        EndIf
    EndSelect
WEnd
Exit
:lmao: Edited by Joke758

[u]My Programs:[/u]Word Search Creator - Make your own Word SearchShortHand - Hide a secret message in a jpg fileHex Editor - Edit your Binary fileIncrease file size - Increase the size of any filesArt Generator - A program that generate random picture[u]My Functions:[/u]16-Bits Hash - My Hash function similar to MD5Probabilities - My probabilities function (factorial, permuation, combination)_GetDate() - Convert a date to a day of the week_Base(), _Dec() - Convert a number in any base (bin, oct, hex, dec). Create your own!

Link to comment
Share on other sites

1day/30 views and no replies :lmao:

I will maybe make a winzip in autoit. I need an algorithm to reduce the size of the hexadecimal numbers. I was thinking to put each bytes in binary ( very slow process ) then my program will change the 11111 to 51 and 000 to 30. But I think it will be very slowwww.

[u]My Programs:[/u]Word Search Creator - Make your own Word SearchShortHand - Hide a secret message in a jpg fileHex Editor - Edit your Binary fileIncrease file size - Increase the size of any filesArt Generator - A program that generate random picture[u]My Functions:[/u]16-Bits Hash - My Hash function similar to MD5Probabilities - My probabilities function (factorial, permuation, combination)_GetDate() - Convert a date to a day of the week_Base(), _Dec() - Convert a number in any base (bin, oct, hex, dec). Create your own!

Link to comment
Share on other sites

  • 3 months later...

Hey! Try creating a stereogram! :P

Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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