Jump to content
Sign in to follow this  
Dampe

Calculating Hex possibilities

Recommended Posts

Dampe

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.


Share this post


Link to post
Share on other sites
arcticflame

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

Share this post


Link to post
Share on other sites
Dampe

Wow, Didn't know that would work TBH :)

Thanks for the help.


Share this post


Link to post
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
Sign in to follow this  

×