Kickassjoe Posted June 18, 2008 Posted June 18, 2008 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 expandcollapse popup#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.
longxx Posted June 18, 2008 Posted June 18, 2008 lol making war3 bot? try using Bulb's spoofer bot as template to make it it worked well for me, only need slight tweak based on his bot (his bot was written in AutoIt3)
Kickassjoe Posted June 18, 2008 Author Posted June 18, 2008 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.
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