Results 1 to 2 of 2

Thread: [VB6] Loop for ReadProcessMemory Help

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    2

    [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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width