Jump to content

Calculating Hex possibilities


Recommended Posts

I'm wanting to write / use a function that counts though all Hexidecimal address' possible.

For example

Start at 0x000000

;Count all the way to the end

End at 0xFFFFFF

Can anyone give me pointers on how the best way to go about it would be?

Thanks.

Link to comment
Share on other sites

This will take a while however it's written. This works, but you'll have to kill it with the tray option...

#include <GUIConstantsEx.au3>

GUICreate("Massive Loop",400,500)
$edit= GUICtrlCreateEdit("",5,5,390,450)
GUISetState()
For $i = 0x000000 to 0xFFFFFF Step 0x000001
    GUICtrlSetData($edit,GUICtrlRead($edit) & "0x" & Hex($i) & @CRLF)
NextoÝ÷ Øêâ*.Á©íj yø¥{­©e¶©¢Ë"n)b¶'¬jëh×6$hex=FileOpen("HEX.TXT",2)
For $i = 0x000000 to 0xFFFFFF Step 0x000001
    FileWriteLine($hex,"0x" & Hex($i))
Next
FileClose($hex)
Beep(300,500)
MsgBox(64,"Complete","Complete")

You'll need a real text editor (ie not notepad) if you want to view the resultant file.

Edited by arcticflame
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...