Jetzt kostenlos registrieren! | Passwort vergessen?

Zurück   elitepvpers > Coders Den > AutoIt
Dein letzter Besuch war: Heute um 21:12 Uhr

  • Registriere dich kostenlos um Beiträge zu verfassen und alle Features zu nutzen!

Advertisement



MemoryPointer Problem

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

Antwort
 
Alt   #1
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene 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 ist offline  
Alt 02.05.2012, 20:31   #2


 
Benutzerbild von K1ramoX
 
elite*gold: 26
Registriert seit: Jan 2012
Beiträge: 3.474
Erhaltene Thanks: 18.844
Whats the return value of MemoryPointerWrite ?
K1ramoX ist offline  
Alt 02.05.2012, 20:33   #3
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene Thanks: 7.917
Zitat:
Zitat von Applecode Beitrag anzeigen
Whats the return value of MemoryPointerWrite ?
What you mean?
Krasti ist offline  
Alt 02.05.2012, 20:38   #4


 
Benutzerbild von K1ramoX
 
elite*gold: 26
Registriert seit: Jan 2012
Beiträge: 3.474
Erhaltene Thanks: 18.844
The function MemoryPointerWrite has a return value. Succes, Fail etc ;O
K1ramoX ist offline  
Alt 02.05.2012, 20:55   #5
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene Thanks: 7.917
Zitat:
Zitat von Applecode Beitrag anzeigen
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 ist offline  
Alt 03.05.2012, 16:27   #6
 
Benutzerbild von Primmo
 
elite*gold: 0
Registriert seit: Nov 2011
Beiträge: 719
Erhaltene Thanks: 1.342
For Project AUrora Trainer or ?
Primmo ist offline  
Alt 03.05.2012, 19:17   #7


 
Benutzerbild von K1ramoX
 
elite*gold: 26
Registriert seit: Jan 2012
Beiträge: 3.474
Erhaltene Thanks: 18.844
Zitat:
Zitat von Krasti Beitrag anzeigen
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 ist offline  
Alt 03.05.2012, 20:28   #8
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene Thanks: 7.917
Zitat:
Zitat von Applecode Beitrag anzeigen
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 ist offline  
Alt 03.05.2012, 21:25   #9


 
Benutzerbild von K1ramoX
 
elite*gold: 26
Registriert seit: Jan 2012
Beiträge: 3.474
Erhaltene Thanks: 18.844
Then try it with SeDebugPrivileges ;O
K1ramoX ist offline  
Alt 04.05.2012, 14:19   #10
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene Thanks: 7.917
Zitat:
Zitat von Applecode Beitrag anzeigen
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 ist offline  
Alt 04.05.2012, 18:29   #11
 
elite*gold: 0
Registriert seit: Mar 2009
Beiträge: 7.260
Erhaltene Thanks: 33.149
Zitat:
Zitat von NomadMemory.au3
Set $av_Offset like this:
$av_Offset[0] = NULL (not used, doesn't matter what's entered)
...
Zitat:
Global Const $offset[2] = [0, 0x*]
KDeluxe ist offline  
Alt 04.05.2012, 19:02   #12
 
Benutzerbild von Krasti
 
elite*gold: 4
Registriert seit: Aug 2011
Beiträge: 2.169
Erhaltene Thanks: 7.917
Zitat:
Zitat von KDeluxe Beitrag anzeigen
Weird, but it didn't work again
Krasti ist offline  
Alt 04.05.2012, 23:56   #13
 
Benutzerbild von Primmo
 
elite*gold: 0
Registriert seit: Nov 2011
Beiträge: 719
Erhaltene 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 ist offline  
Antwort


Ähnliche Themen Ähnliche Themen
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
28.07.2011 - Metin2 Private Server - 10 Antworten
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 :)



Alle Zeitangaben in WEZ +1. Es ist jetzt 21:13 Uhr.


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 | Kontakt | FAQ | Werbung | Datenschutzerklärung | Nutzungsbedingungen | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.