AutoHotkey Community

It is currently May 27th, 2012, 11:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 13th, 2009, 7:44 am 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Hello HugoV!!!

Thank you so much for those two links that you gave me. The first one leads to a lot of basic information on binary files that I really needed. Also, there is an illustration of a hex dump there. When I clicked on “hex dump” and read all about it a lot of things became very clear to me.

For example, I got the answer to my question about why it is so hard now to get a hold of a string of just ones and zeros of any computer file. Having read that Wiki article on “hex dump”, I realized that in fact it’s not hard at all as hex dump IS the representation of that string, except with the use of two-digit hexadecimal numbers. Thus, if there is such a desire to see only ones and zeros, one just needs to convert those hex numbers into base2 numbers.

The second link leads to a lot of threads and posts that are kind of overwhelming to me as a lot of things there I simply don’t understand.

HugoV wrote:
AHK has limited capabilities with binary files

Tiny Hex has the ability of converting any binary file’s hex dump into a plain text. If so, then I don’t understand why AHK is limited in this regard? Why not just convert to a text and then let AHK operate on it – AHK’s capabilities with text files, as far as I know, are unlimited. (I am going to make use of that Tiny Hex's feature to avoid the necessity of dealing with characters that are not supported in AHK.)

HugoV wrote:
In the end you will have little use for doing what you want, the video file does not contain useful information as such apart from sections of plain text which may or may not include copyright, compression, codec, used software info etc.

Yes, I understand that, but I will still try to play with it. My experience shows me that doing some silly experiments with no obvious profit on the horizon can at times yield surprisingly positive results. That’s how I arrived at AHK, after all.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2009, 8:52 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Benny-D wrote:
AHK’s capabilities with text files


http://www.autohotkey.com/docs/commands/FileRead.htm says:
Quote:
If the specified file contains any binary zeros (which never occur in proper text files), only the text before the first binary zero will be "seen" by AutoHotkey commands and functions.
To be able to read and process binary files you need special functions which can be found in the links in Murp|es post (bin read/write).

Do let us know if you manage to convert movies to ASCII art using AHK
I'm sure we'll put it to good use (see http://www.asciimation.co.nz/ for an example) 8)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group