Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:59

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

Advertisement



_MemoryRead will not work

Discussion on _MemoryRead will not work within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 14
Received Thanks: 1
_MemoryRead will not work

Hi everyone im trying to make a little script that will click when the value is bigger than certain amount. But _MemoryRead always return to 0. Which is wrong because when i test it in Cheat Engine it works perfect. Does anyone know what is going on here?? Tried running in 32bit and 64bit same result. Maybe anti-cheat X-trap has something to do with it??

Code:
#include <NomadMemory.au3>
#include <Misc.au3>
#RequireAdmin

MsgBox(4096, "", "Hack made by ProGh0st")

If Not _Singleton(@Scriptname, 1) Then
	MsgBox(4096, "Is Running", "Hack is already running .-.")
	Exit
EndIf

Opt("MouseClickDelay", 1)
Opt("MouseCoordMode", 0)
Opt("CaretCoordMode", 0)
Global Const $Crosshair_base = 0x00B4A358


If WinExists("[class:CrossFire]") Then
	Global $PID = WinGetProcess("[class:CrossFire]")
	If $PID = -1 Then
		MsgBox(4096, "","Could Not Get PID")
		Exit
	EndIf
    Global $Mem_Open = _MemoryOpen($PID)
	Call("TriggerBot")
Else
	MsgBox(4096, "Crossfire", "Waiting for Crossfire to start")
	WinWait("[class:CrossFire]")
	Sleep(10000)
	Global $PID = WinGetProcess("[class:CrossFire]")
	If $PID = -1 Then
		MsgBox(4096, "","Could Not Get PID")
		Exit
	EndIf
    Global $Mem_Open = _MemoryOpen($PID)
	Call("TriggerBot")
EndIf




Func TriggerBot()

While ProcessExists($PID)
	;$check = _MemoryRead($Crosshair_base, $Mem_Open)
	;MsgBox(0,"", $check)
    If _MemoryRead($Crosshair_base, $Mem_Open) > 130000000 Then
	While _MemoryRead($Crosshair_base, $Mem_Open) > 130000000
		MouseClick("primary", Default, Default,1,1)
		Sleep(10)
	WEnd
	EndIf
WEnd
EndFunc
progh0st is offline  
Old 09/13/2015, 12:00   #2
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Better use KDeluxe UDF for memory, it works on 32 and 64 bit and u have examples how to use it
mlukac89 is offline  
Reply


Similar Threads Similar Threads
_MemoryRead problem
03/03/2013 - AutoIt - 7 Replies
Hi, how i can read this Offset with _MemoryRead? 8B15 F8A66400 MOV EDX,DWORD PTR DS: I need to read 64A6F8 :) Thanks for help!
_MemoryRead Problem
07/02/2012 - AutoIt - 2 Replies
Hey, ich will das er etwas macht wenn sich der Wert des Processes auf 1 verändert , ich leider schon etwas länger her das ich mit der NomadMemory.au3 gearbeitet habe . Ich habe das ganze in einer While Schleife , wie mache ich dann da die if abfrage ? danke schon mal im voraus :)
Alternative to _MemoryRead/Write for 64bit
04/05/2012 - AutoIt - 3 Replies
Is there any alternative method for memory read/write on 64bit systems??i tried nomadmemory but no value is being returned and its not 64bit safe..:confused: here is the code that i want to be 64bit compatible any help/suggestion is greatly appreciated..:)
_memoryread mit 64bit programmen geht nicht! - winapi - profi - frage
07/28/2011 - AutoIt - 21 Replies
hallo, ich bin ganz neu hier und habe eine kniffeliges problem. ich versuche verzweifelt mit der _memoryread - funktion aus der nomadmemory.au3 unter 64bit zu arbeiten. und zwar so, dass ich auch auf 64bit speicherbereiche benutzen kann. - leider erhalte ich nur nullwerte zurück :( ich habe schon versucht das problem zu lösen, es leider nicht geschafft. so wie ich das sehe ist das problem, dass wie ProcessReadMemory - winapi mit int´s "versorgt" wird was ja nut 4bytes/32bit halten kann. also...



All times are GMT +1. The time now is 09:59.


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.