Dampe Posted April 4, 2008 Share Posted April 4, 2008 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 More sharing options...
arcticflame Posted April 4, 2008 Share Posted April 4, 2008 (edited) 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 April 4, 2008 by arcticflame Link to comment Share on other sites More sharing options...
Dampe Posted April 4, 2008 Author Share Posted April 4, 2008 Wow, Didn't know that would work TBH Thanks for the help. 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