Joke758 Posted October 3, 2006 Share Posted October 3, 2006 (edited) 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 Edited January 3, 2007 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 More sharing options...
Joke758 Posted October 3, 2006 Author Share Posted October 3, 2006 1day/30 views and no replies 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 More sharing options...
jvanegmond Posted October 3, 2006 Share Posted October 3, 2006 I've just tried this. It's ok, but I'd rather have a professional editor. It's funny how it sometimes loads up to 10 seconds. ^^ github.com/jvanegmond Link to comment Share on other sites More sharing options...
spyrorocks Posted October 3, 2006 Share Posted October 3, 2006 Looks cool. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
A. Percy Posted January 5, 2007 Share Posted January 5, 2007 Hey! Try creating a stereogram! 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 VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral 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