need help with autoit

12/02/2008 22:06 Smurfin#1
Can anyone please help me with this script, I want to try AutoIT to make JumpHack, so far so good, got the memory address that show the value of the jump, 0 when on stand position, 1 when jump once, 2 when jump twice. I need to freeze the value to 'one' so unlimited jump can happen.

How do I write '1' to this memory address ? the line in bold below is showing where the line for writing it if I get it right, but that line gave me an error. Please help.

* If you're going to trying it on other than PW Indo, don't forget to change the base address to your version.

Code:
#include <NomadMemory.au3>
#include <Memory.au3>
#include <GUIConstants.au3>
#include <Array.au3>

$APP_TITLE="Element Client"
$APP_BASE_ADDRESS=9607148
;$OFFSET_JUMP=2836
Global $OFFSET_HP[3]
Global $OFFSET_JUMP[3]
$OFFSET_HP[1]=32
$OFFSET_HP[2]=1104
$OFFSET_JUMP[1]=32
$OFFSET_JUMP[2]=2836

Global $PROCESS_ID = WinGetProcess($APP_TITLE)
Global $PROCESS_INFORMATION = _MemoryOpen($PROCESS_ID)
Global $HP = "0"

GuiCreate("JUMP HACK", 250, 100)
$msg=0
GuiSetState()
$LABEL_HP_STATUS = GUICtrlCreateLabel("HP: 0/0 (0%)", 5, 5, 150, 20)
$LABEL_JUMP_STATUS = GUICtrlCreateLabel("JUMP", 5, 25, 150, 20)

While $msg <> $GUI_EVENT_CLOSE
	  $msg = GuiGetMsg()
	  $HP = _MemoryPointerRead($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $OFFSET_HP)
	  $JUMP = _MemoryPointerRead($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $OFFSET_JUMP)
	  [b]_MemoryPointerWrite(($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $OFFSET_JUMP,1)[/b]
	  GUICtrlSetData($LABEL_HP_STATUS, "HP: " & $HP[1])
	  GUICtrlSetData($LABEL_JUMP_STATUS, "JUMP " & $JUMP[1])
WEnd
12/02/2008 22:44 Smurfin#2
lol nevermind, found it already! Look like I mistype that part of line by using double round brackets at opening. Deleted one round bracket and it works yay.

thread closed, sorry ^^)