Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:17

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

Advertisement



MemoryPointer Problem

Discussion on MemoryPointer Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
MemoryPointer Problem

I got a problem in MemoryPointerWrite...
I've made a button which will write to a pointer the value of Inputbox

Code:
_MemoryPointerWrite($base ,$OPEN,$offset,GUICtrlRead($Input1),"dword")
i use that function
the adress and offset has been tested and work..
i wrote offset like that

Code:
Global Const $offset[1] = [0x*]
and addy

[code]
Global Const $base = 0x******
Krasti is offline  
Old 05/02/2012, 20:31   #2


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,847
Whats the return value of MemoryPointerWrite ?
K1ramoX is offline  
Old 05/02/2012, 20:33   #3
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Applecode View Post
Whats the return value of MemoryPointerWrite ?
What you mean?
Krasti is offline  
Old 05/02/2012, 20:38   #4


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,847
The function MemoryPointerWrite has a return value. Succes, Fail etc ;O
K1ramoX is offline  
Old 05/02/2012, 20:55   #5
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Applecode View Post
The function MemoryPointerWrite has a return value. Succes, Fail etc ;O
The addy get value of Inputbox.
I can't really get what do u mean
Krasti is offline  
Old 05/03/2012, 16:27   #6
 
Primmo's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 719
Received Thanks: 1,342
For Project AUrora Trainer or ?
Primmo is offline  
Old 05/03/2012, 19:17   #7


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,847
Quote:
Originally Posted by Krasti View Post
The addy get value of Inputbox.
I can't really get what do u mean
Code:
;=================================================================================================
; Function:			_MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data(, $sv_Type))
; Description:		Reads a chain of pointers and writes the data to the destination address.
; Parameter(s):		$iv_Address - The static memory address you want to start at. It must be in
;								  hex format (0x00000000).
;					$ah_Handle - An array containing the Dll handle and the handle of the open
;								 process as returned by _MemoryOpen().
;					$av_Offset - An array of offsets for the pointers.  Each pointer must have an
;								 offset.  If there is no offset for a pointer, enter 0 for that
;								 array dimension.
;					$v_Data - The data to be written.
;					$sv_Type - (optional) The "Type" of data you intend to write at the destination
;								 address.  This is set to 'dword'(32bit(4byte) signed integer) by
;								 default.  See the help file for DllStructCreate for all types.
; Requirement(s):	The $ah_Handle returned from _MemoryOpen.
[COLOR="Red"][B]; Return Value(s):	On Success - Returns the destination address.
;					On Failure - Returns 0.
;					@Error - 0 = No error.
;							 1 = $av_Offset is not an array.
;							 2 = Invalid $ah_Handle.
;							 3 = Failed to read from the specified process.
;							 4 = $sv_Type is not a string.
;							 5 = $sv_Type is an unknown data type.
;							 6 = Failed to allocate the memory needed for the DllStructure.
;							 7 = Error allocating memory for $sv_Type.
;							 8 = $v_Data is not in the proper format to be used with the
;								 "Type" selected for $sv_Type, or it is out of range.
;							 9 = Failed to write to the specified process.[/B][/COLOR]
; Author(s):		Nomad
; Note(s):			Data written is in Decimal format, unless a 'char' type is selected.
;					Set $av_Offset like this:
;					$av_Offset[0] = NULL (not used, doesn't matter what's entered)
;					$av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
;					$av_Offset[2] = Offset for pointer 2
;					etc...
;					(The number of array dimensions determines the number of pointers)
;=================================================================================================
This is what I mean.
K1ramoX is offline  
Old 05/03/2012, 20:28   #8
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Applecode View Post
Code:
;=================================================================================================
; Function:			_MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data(, $sv_Type))
; Description:		Reads a chain of pointers and writes the data to the destination address.
; Parameter(s):		$iv_Address - The static memory address you want to start at. It must be in
;								  hex format (0x00000000).
;					$ah_Handle - An array containing the Dll handle and the handle of the open
;								 process as returned by _MemoryOpen().
;					$av_Offset - An array of offsets for the pointers.  Each pointer must have an
;								 offset.  If there is no offset for a pointer, enter 0 for that
;								 array dimension.
;					$v_Data - The data to be written.
;					$sv_Type - (optional) The "Type" of data you intend to write at the destination
;								 address.  This is set to 'dword'(32bit(4byte) signed integer) by
;								 default.  See the help file for DllStructCreate for all types.
; Requirement(s):	The $ah_Handle returned from _MemoryOpen.
[COLOR="Red"][B]; Return Value(s):	On Success - Returns the destination address.
;					On Failure - Returns 0.
;					@Error - 0 = No error.
;							 1 = $av_Offset is not an array.
;							 2 = Invalid $ah_Handle.
;							 3 = Failed to read from the specified process.
;							 4 = $sv_Type is not a string.
;							 5 = $sv_Type is an unknown data type.
;							 6 = Failed to allocate the memory needed for the DllStructure.
;							 7 = Error allocating memory for $sv_Type.
;							 8 = $v_Data is not in the proper format to be used with the
;								 "Type" selected for $sv_Type, or it is out of range.
;							 9 = Failed to write to the specified process.[/B][/COLOR]
; Author(s):		Nomad
; Note(s):			Data written is in Decimal format, unless a 'char' type is selected.
;					Set $av_Offset like this:
;					$av_Offset[0] = NULL (not used, doesn't matter what's entered)
;					$av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
;					$av_Offset[2] = Offset for pointer 2
;					etc...
;					(The number of array dimensions determines the number of pointers)
;=================================================================================================
This is what I mean.
It return on @error - 9
Is it matter that i open the au3 ingame of the game?
Krasti is offline  
Old 05/03/2012, 21:25   #9


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,847
Then try it with SeDebugPrivileges ;O
K1ramoX is offline  
Old 05/04/2012, 14:19   #10
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Applecode View Post
Then try it with SeDebugPrivileges ;O
Nothing happen.
Still it doesn't write

Code:
func _change()
_MemoryPointerWrite($base ,$OPEN,$offset,GUICtrlRead($Input1),"dword")
EndFunc
this is my func
Krasti is offline  
Old 05/04/2012, 18:29   #11
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
Quote:
Originally Posted by NomadMemory.au3
Set $av_Offset like this:
$av_Offset[0] = NULL (not used, doesn't matter what's entered)
...
Quote:
Global Const $offset[2] = [0, 0x*]
KDeluxe is offline  
Old 05/04/2012, 19:02   #12
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by KDeluxe View Post
Weird, but it didn't work again
Krasti is offline  
Old 05/04/2012, 23:56   #13
 
Primmo's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 719
Received Thanks: 1,342
This? o,o


#include <NomadMemory.au3>
Global $pointer = 0x009E90C8
Global $offset = "1c"
Global $ProcessID = WinGetProcess("Enemy Territory")
Global $Mem_Open = _MemoryOpen($ProcessID)
Global $Mem_Read = _MemoryPointerRead($pointer, $Mem_Open, $offset)
MsgBox(0, "", $Mem_Read)
Primmo is offline  
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +2. The time now is 12:17.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.