Autoit Zoom Hack Source

08/01/2009 07:51 PreSchoolerMan#1
Alright since I have finally come to face it that conquer has become so unfair to the older/original players I cant take it anymore and have decided to quit the game.... So here you are. Source code to a zoomhack that supports multiple conquers.
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=Zoom.exe
#AutoIt3Wrapper_UseUpx=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <NomadMemory.au3> ;because you need this for _memread functions
#include <GuiConstantsEx.au3>

HotKeySet("{PGUP}" , "ZoomIn" )
HotKeySet("{PGDN}" , "ZoomOut" )

$Mem_Address = 0x00690500 ;the conquer memory address for current level
;$Process1 = WinGetProcess("[Conquer] Raiding Clans") ;the window to get PID
;$Mem_DataIn = $Mem_Read + 0xF
;$Mem_DataOut = $Mem_Read - 0xF
GuiCreate( "Zoom by PreSchoolerMan" , 275, 60 )
$Label_1 = GUICtrlCreateLabel("Zoom Hack by PreSchoolerMan",50, 45)
$Button_1 = GUICtrlCreateButton("HIDE", 55, 13, 150)

GUISetState ()

While 1
	$msg = GUIGetMsg()
	Select
		Case $msg = $Button_1
			WinSetState("Zoom by PreSchoolerMan", "",@SW_Hide)
		Case $msg = $GUI_EVENT_CLOSE
			ExitLoop
	EndSelect
WEnd
Func ZoomIn()
	;While 1
		if WinGetTitle("[active]") <> "[Conquer] Raiding Clans" Then
			Return
		Else
			$Process1 = WinGetProcess(WinGetTitle("[active]"))
		EndIf
		$Mem_Open = _MemoryOpen($Process1) ;must open before you can read address
		$Mem_Read = _MemoryRead($Mem_Address, $Mem_Open) ;reads value at memory address
		_MemoryWrite( $Mem_Address, $Mem_Open, $Mem_Read + 0xF)
		_MemoryClose($Mem_Open) ;close it afterwards
		$Process1 = 0
	;WEnd
EndFunc
Func ZoomOut()
	;While 1
		if WinGetTitle("[active]") <> "[Conquer] Raiding Clans" Then
			Return
		Else
			$Process1 = WinGetProcess(WinGetTitle("[active]"))
		EndIf
		$Mem_Open = _MemoryOpen($Process1) ;must open before you can read address
		$Mem_Read = _MemoryRead($Mem_Address, $Mem_Open) ;reads value at memory address
		_MemoryWrite( $Mem_Address, $Mem_Open, $Mem_Read - 0xF)
		_MemoryClose($Mem_Open) ;close it afterwards
		$Process1 = 0
	;WEnd
EndFunc
08/02/2009 12:36 Zeelia#2
Thanks for the source! I'm really gonna use this =)

Thanks!
//Zeelia