Jump to content

Memory reading issues


Recommended Posts

I'm trying to increment the address that I am searching at to have 'A0' at the end of it all the time. No matter what I do it doesn't seem to want to increment like "10000A0", "200000A0", etc. I don't understand why :/

here's the code I'm using

#include<Memory.au3>
#include <NomadMemory.au3>
HotKeySet("{insert}", "getkey")

Global $type1 = 'char[4]'
Global $type2 = 'char[20]'

While 1
    Sleep(10000)
WEnd

Func getkey()




Global $Address = 160
  $roc         = 'RoC: '

;$kernel32dll = DllOpen("kernel32.dll")
;$user32dll = DllOpen("user32.dll")
;$advapi32dll = DllOpen("advapi32.dll")
;$crtdll = DllOpen("crt.dll")




SetPrivilege("SeDebugPrivilege", 1)


$PID = ProcessExists("war3.exe")
$MemOpen = _MemoryOpen($PID)

;$READ = _MemoryRead($WC3_KEY_ADDRESS_JUMP, $MemOpen, "char[4]")

;MsgBox(0,0,Dec(0xFFF00A0))
;MsgBox(0,0,Hex(160+65536, 5))
$x = 160
While $x <= 268370080
;MsgBox(0,0,$x - 160)
MsgBox(0,0, '0x' & Hex($x))
$curread = _MemoryRead('0x' & Hex($x, 5), $MemOpen, 'char[4]')
;MsgBox(0,0,$curread)
if StringInStr($curread, "roc", 0) Then
    MsgBox(0,0,1)
EndIf
$x += 66536
WEnd
;MsgBox(0,0,$READ)

MsgBox(0,0,0)
EndFunc;getkey

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

I'm not familiar with Bulb's bot (I searched for it and couldn't find it), and I'm not trying to make a bot, I'm trying to make a cd key grabber.

What goes around comes around... Payback's a bitch.

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