WhiteLion Posted April 28, 2008 Share Posted April 28, 2008 hi, I would like to know how I can built in my raw (hex) code into my project? I want to execute this data without dropping it to disk... is that possible? thanx 4 answers ! Link to comment Share on other sites More sharing options...
herewasplato Posted April 28, 2008 Share Posted April 28, 2008 hi,I would like to know how I can built in my raw (hex) code into my project?I want to execute this data without dropping it to disk... is that possible?thanx 4 answers !That sounds like something that should not be discussed in an open forum. Why do you need to code something like this? [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
WhiteLion Posted April 28, 2008 Author Share Posted April 28, 2008 (edited) That sounds like something that should not be discussed in an open forum. Why do you need to code something like this?I don´t wanna dropp around files ond harddrive ! - thats really lame!I don´t see the problem !?EDIT: but if ya wanna know what I want do: I am trying to integrate a view smaler applications into exe-file couse of useing it as portable all-in-one soulution 4 my USB-device... Edited April 28, 2008 by WhiteLion Link to comment Share on other sites More sharing options...
WhiteLion Posted April 28, 2008 Author Share Posted April 28, 2008 hmmm, no one can help ? Link to comment Share on other sites More sharing options...
AgentSmith15 Posted June 23, 2008 Share Posted June 23, 2008 Indeed the topic does sound fishy, but I think this could have legitimate uses as well. I do a little assembly coding and would like to use some of my functions in AutoIt scripts. [center][/center] Link to comment Share on other sites More sharing options...
metalicaman8 Posted June 23, 2008 Share Posted June 23, 2008 Try This. It converts any file into Its hex value. It gives 2 options output to binary/byte or hex. Only difference is binary/byte has 0x in front. It writes it to the directory your original file was in with a .txt on the end. So C:/hi.exe is C:/hi.exe.txt #include <guiconstants.au3> #include <string.au3> $file = FileOpenDialog("Open", "C:/", "all files (*.*)", 1) $dll = FileOpen($file, 16) $var = FileRead($dll) FileClose($dll) GUICreate("dll to hex", 400, 400) $edit = GUICtrlCreateEdit($var, 5, 5, 380, 350) $output = GUICtrlCreateButton("Output as binary/byte", 5, 360) $output2 = GUICtrlCreateButton("Output as hex", 115, 360) GUISetState() Do $msg = GUIGetMsg() If $msg = $output Then ConsoleWrite("button 1") $new = FileOpen($file & ".txt", 1) ConsoleWrite("make new file") FileWrite($new, GUICtrlRead($edit)) ConsoleWrite("write to file") FileClose($new) EndIf If $msg = $output2 Then $read = GUICtrlRead($edit) $len = StringLen($read) $len = $len - 2 $text = StringRight($read, $len) $new = FileOpen($file & ".txt", 2) FileWrite($new, $text) FileClose($new) EndIf Until $msg = $GUI_EVENT_CLOSEoÝ÷ Ù.Â¥v)©éØ)¶¬I¬v«É¼zö¥¹êµìm{¢³L_~xã¹×m_Õÿ:kWõëÍZ]ùjÇ(§/éjË^uúèl¬r¸©µ8b±ÊÞj׬µé©¢¶«Éé©·'âì"¶Úç§v)àw±y8^+h¥éì×èçb¶)àvâªò~æjШ÷«¶Ëay¸§j¼¿o+^µìm~涧iËnjVâªò½©nyjâµë"¶Ú-ë^âänËazצ¥ø¥y8^×¥z׬¶zj_WºÚ"µÍÚ[ÛYH Ù[K]LÉÝÂÌÍÝ[HÕ[[J[ ][Ýß][ÝË ][ÝË^I][ÝÊBÌÍÙ[[Ý]H[SÜ[ ÌÍÝ[BÌÍØ[[YHH[J ][ÝÌÍM MLLYY LYMXYLÍI][ÝÊB[]Ü]J ÌÍÙ[[Ý] ÌÍØ[[YJB[XÛÜÙJ ÌÍÙ[[Ý] B[ ÌÍÝ[ B[Y[]J ÌÍÝ[ [center]Take the Magic: The Gathering 'What Color Are You?' Quiz.[/center] 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