|
-
Feb 15th, 2010, 05:36 PM
#1
Thread Starter
New Member
[VB6] Loop for ReadProcessMemory Help
Hi, I want to write a simple loop function for ReadProcessMemory in vb6. I know the address that I want to modify with WriteProcessMemory. Here is a simple version of my code:
Code:
Private Sub Command1_Click()
If ReadMemory(&HB29F293) = 1 Then
Call WriteAInt(&HB29F293, 99, 4)
End If
End Sub
Basically, if the offset of address 0B29F293 is 1, WriteProcessMemory will change the offset to 99.
Now, I want to add a loop for a range of addresses: &HBXXF293, where XX is from 00 to FF. I have experience with loops in numbers, but how would I go about writing a loop that includes both numbers and letters from the range 00 to FF? The loop will stop when &HBXXF293 is equal to 1, and calls the writeprocessmemory function to change the offset to 99.
Any help would be greatly appreciated ^^.
Last edited by DaphneTaffy; Feb 15th, 2010 at 05:45 PM.
-
Feb 15th, 2010, 05:51 PM
#2
Re: [VB6] Loop for ReadProcessMemory Help
Daphne
Just off the top of my head ...
Since F is 16, and since FF = 256, could you possibly
to a loop using intergers, from 0 to 256?
ie,
00 = 0
01 = 1
...
09 = 9
0A = 10
0B = 11
0C = 12
0D = 13
0E = 14
0F = 15 ... hmmm, not 16
10 = 16
11 = 17
...
FF = 255 (should be, right?)
Hmm.. my hex brain isn't working properly.
But hopefully you get my drift.
Spoo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|