Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 20:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Memory Read in autoit

Discussion on Memory Read in autoit within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2006
Posts: 379
Received Thanks: 50
Memory Read in autoit

Something is wrong when I use this macro. AutoIt alwais get a positive answer for every memory read, even if the answer is negative.
Code:
#include <NomadMemory.au3>
$paused1 = 1
While $paused1 = 1
	$pos2 = MouseGetPos()
	$sleep = 350
	$Mem_Answer1 = 0x0168DFBC
	$Mem_Answer2 = 0x0168E0F4
	$Mem_Answer3 = 0x0168E22C
	$Mem_Answer4 = 0x0168E364
	$Process1 = WinGetProcess("[Conquer2.0]")

	MouseClick ("left", $pos2[0], $pos2[1], 1, 1)
	sleep ($sleep)
	
		$Mem_Open = _MemoryOpen($Process1) 
	$Mem_Read1 = _MemoryRead($Mem_Answer1, $Mem_Open, "char[16]") 
	If $Mem_Read1 = "Of course." Then
	MsgBox (0, "ERROR", "Done")
	$paused1 = 0
Else

sleep($sleep)
	MouseClick ("left", 265, 177, 1, 5)
	Sleep($sleep)
	
			$Mem_Read1 = _MemoryRead($Mem_Answer1, $Mem_Open, "char[16]")
			sleep(5)
			$Mem_Read2 = _MemoryRead($Mem_Answer2, $Mem_Open, "char[16]")
			sleep(5)
			$Mem_Read3 = _MemoryRead($Mem_Answer3, $Mem_Open, "char[16]")
			sleep(5)
			$Mem_Read4 = _MemoryRead($Mem_Answer4, $Mem_Open, "char[16]")
			sleep(5)
			
		If $Mem_Read1 = "Level 40" Or $Mem_Read1 = "20" Or $Mem_Read1 = "Boxer" Then
				
			MouseClick ("left", 265, 177, 1, 10)
			
		ElseIf $Mem_Read2 = "Level 40" Or $Mem_Read2 = "20" Or $Mem_Read2 = "Boxer" Then
			
			MouseClick ("left", 530, 177, 1, 10)
			
		ElseIf $Mem_Read3 = "Level 40" Or $Mem_Read3 = "20" Then
			
			MouseClick ("left", 265, 199, 1, 10)
			
		ElseIf $Mem_Read4 = "Level 40" Or $Mem_Read4 = "20" Or $Mem_Read4 = "Boxer" Then
			
			MouseClick ("left", 530, 199, 1, 10)
			
		EndIf
		EndIf
		
sleep($sleep)
MouseClick ("left", 265, 177, 1, 10)
MouseMove ($pos2[0], $pos2[1], 10)
_MemoryClose($Mem_Open)
$paused1 = 0

WEnd
When i start this, the message boxe ''done'' alwais pop up, even if the general li dont say "Of course."
Is something wrong in the programation? I got the nomad memory in the include folder, I used the text adress found with cheat engine and i added "0x" before.
bobbyaube is offline  
Old 01/01/2009, 20:53   #2
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
That code wasn't meant to be used, it was meant to be an inspiration for your own code. You should check out the AutoIt help file, it's very helpful indeed.

Ps. Remember to run the script as administrator if you're using Windows Vista.
IAmHawtness is offline  
Old 01/02/2009, 00:34   #3
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Lol, I had the same problem. I believe it has to do with the PID of the process. Try using the title: "[Conquer2.0" without the last "]" and also declare Opt("WinTitleMatchMode",2) at the top of your script.

Hiyoal
Hiyoal is offline  
Reply


Similar Threads Similar Threads
[VB]Write Memory bzw Read Memory
06/26/2010 - .NET Languages - 8 Replies
Hi Ich hab das TuT von *Guidman* benütz um einen hack zu machen. So aber nun hab ihc ein paar fragen könnte man memory teil kürzer machen und am besten wie kann man das selber machen weil ich will nihct immer C&P machen. Und zu Read Memory kann man das auch machen das ein Label immer die Bestimmte Ahnzahl angiebt von dem Pointer?.(Wenn das Read Memory ist ?) Bitte helf mir Danke
Memory Read
06/18/2010 - AutoIt - 8 Replies
Hey E*PvP, ich hab ein Problem... Ich denke das die memory richtig ist , aber er gibt mir immer nur 0 aus.... Egal ob ich 0, 1, 1000 oder 9million punkte hab ... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <nomadmemory.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Sol loger", 201, 64, 324, 280)
Memory Read u.ä.
02/16/2010 - Metin2 - 2 Replies
Moin, ich wollte fragen ob es für Metin2 auch eine UDF für autoit (mit memory read) gibt. Also mir geht es eigentlich nur darum, dass ich einen Bot im HIntergrund laufen lassen kann und es möglich ist zu überprüfen wo der nächste gegner ist, diesen anzuklicken und wie viel hp/mp etc man noch hat. -->Suche etwas "exateres" als z.B. PixelSearch/MousClick und etwas womit ich den Bot im Hintergrund laufen lassen kann. Könnte mir jemand dazu ein Beispiel Script (bezogen auf Metin2) oder...
Read memory
06/27/2008 - Diablo 2 - 7 Replies
Hallo, will mit readprocessmemory nen externes programm machen was mir energie usw protokoliert. Das problem ist nur, das D2 die adressen bei jedem neuen spiel immer verändert. Wie kann ich das umgehen? Brauch ich glaube nen pointer auf die richtige adresse, aber wie? Hat da jemand ahnung???



All times are GMT +1. The time now is 20:58.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.