Jump to content

Recommended Posts

Posted (edited)

Hello,

Am I any where close on this? I did a search and tried to using what I thought was correct. The script compiles and runs but does not change the memory values.

#include <NoMadMemory.au3>
#include <Misc.au3>
#include <Array.au3>
#include <Memory.au3>
#RequireAdmin


$PID = WinGetHandle("Card Play")
$ah_Handle = _MemoryOpen($PID)

If $PID = 0 Then
    MsgBox(0, "Error!", "Process does not exist")
    Exit
EndIf



_MemoryWrite(0x005DF837, $ah_Handle, "0x90", 'byte[1]' )
_MemoryWrite(0x005DF838, $ah_Handle, "0x90", 'byte[1]' )
_MemoryWrite(0x005DFF2A, $ah_Handle, "0x90", 'byte[1]' )
_MemoryWrite(0x005DFF2B, $ah_Handle, "0x90", 'byte[1]' )
_MemoryWrite(0x005DFE45, $ah_Handle, "0x90", 'byte[1]' )
_MemoryWrite(0x005DFE46, $ah_Handle, "0x90", 'byte[1]' )

 _MemoryClose($PID)

Thanks for the help

BTW: I'm doing this in Windows7 and the game is 32bit.

Edited by Cuervo

-Tim

Posted

Am I really that far off? Has no one every done this before? Did I post this in the wrong forum?

No, but you did just violate forum rules :D. Please wait 24 hours before bumping a post. I believe that counts as bumping.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Posted

No, but you did just violate forum rules :D. Please wait 24 hours before bumping a post. I believe that counts as bumping.

OK, thanks.

I got it working.

Can anyone explain why,

$PID = WinGetProcess would work while $PID = WinGetHandle would not?

-Tim

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
×
×
  • Create New...