Zoom Hack question, need help

06/05/2009 04:22 ookamocka#1
alright... so i know the address to the zoom size

0x0064E7B0

and i know that it's static (i checked, it's static)... normal size is 256, zoomed in all the way is 512... now here's my problem... if i write to the address using autoit, NOTHIGN happens :( and if i read the address... i get 0... wtf? :(

Code:
$PID = WinGetProcess("[ACTIVE]", "")
_MemoryRead(0x0064E7B0, $PID)
that should give me the value of the current zoom size, which is 256... but instead i get 0, anybody know y?
06/05/2009 05:00 high7#2
More code is required.
06/05/2009 05:10 ookamocka#3
Quote:
Originally Posted by high7 View Post
More code is required.
well obviously, but thats just the main part for what i'm trying to do there...

if u want it all...

Code:
#include "NomadMemory.au3"

Global Const $GET_PLAYER_ADDRS = 0x0064ff48
Global Const $ZOOM = 0x0064E7B0

HotKeySet("{F4}", "TurnOnOffCyclone")
HotKeySet("^{NUMPADADD}", "ZoomIn")
HotKeySet("^{NUMPADSUB}", "ZoomOut")
HotKeySet("!x", "Terminate")

While 1
	ToolTip("F4 : Turn on/off Speedhack" & @CR & _
			"Ctrl +/- : Zoom In/Out" & @CR & _
			"Alt + X : Exit program",20,20,"iSpeedz v1.0",0,4)
	sleep(10000)
WEnd

Func ZoomIn()
	If WinActive("[TITLE:[Conquer2.0]") == 1 Then ;check if CO is the active window
		
		$PID = WinGetProcess("[ACTIVE]", "")
		
		$MemID = _MemoryOpen($PID)
		
		$zoomSize = _MemoryRead($ZOOM, $PID)
	
		$zoomSize += 20
		
		_MemoryWrite($ZOOM, $PID, $zoomSize)
		
	EndIf
EndFunc
06/05/2009 06:16 high7#4
Quote:
Originally Posted by ookamocka View Post
well obviously, but thats just the main part for what i'm trying to do there...

if u want it all...

Code:
#include "NomadMemory.au3"

Global Const $GET_PLAYER_ADDRS = 0x0064ff48
Global Const $ZOOM = 0x0064E7B0

HotKeySet("{F4}", "TurnOnOffCyclone")
HotKeySet("^{NUMPADADD}", "ZoomIn")
HotKeySet("^{NUMPADSUB}", "ZoomOut")
HotKeySet("!x", "Terminate")

While 1
	ToolTip("F4 : Turn on/off Speedhack" & @CR & _
			"Ctrl +/- : Zoom In/Out" & @CR & _
			"Alt + X : Exit program",20,20,"iSpeedz v1.0",0,4)
	sleep(10000)
WEnd

Func ZoomIn()
	If WinActive("[TITLE:[Conquer2.0]") == 1 Then ;check if CO is the active window
		
		$PID = WinGetProcess("[ACTIVE]", "")
		
		$MemID = _MemoryOpen($PID)
		
		$zoomSize = _MemoryRead($ZOOM, $PID)
	
		$zoomSize += 20
		
		_MemoryWrite($ZOOM, $PID, $zoomSize)
		
	EndIf
EndFunc
Would help with "NomadMemory.au3"...

Anyways my guess is

_MemoryRead($ZOOM, $PID)

Isn't that supposed to be

_MemoryRead($ZOOM, $MemID)
06/05/2009 07:56 ookamocka#5
Quote:
Originally Posted by high7 View Post
Would help with "NomadMemory.au3"...

Anyways my guess is

_MemoryRead($ZOOM, $PID)

Isn't that supposed to be

_MemoryRead($ZOOM, $MemID)
i know NomadMemory.au3 is correct... and ya, thats deff a prob rofl -_- i fail... thx for that ;)... just finished my own speedhack/zoomhack... got tired of waiting for Fujiy to update his... and it doesn't seem like he's going to, i think he's prob having trouble cuz the address for the speedhack is dynamic now? rather that or he just simply doesn't code for CO ne more :)... great thing about not leaching, just make ur own :)...

let me know if u want the finished speed/zoom hack and i'll send it to u, not planning on releasing it publicly (not cuz i'm being selfish, just cuz i don't want to constantly maintain the thread)... though i'm sure u can or already have made one urself :p

Edit: I lied, i decided w/e and just released it by adding them as a feature to my [Only registered and activated users can see links. Click Here To Register...]