Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:52

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

Advertisement



Help with reading memory with offsets from game

Discussion on Help with reading memory with offsets from game within the AutoIt forum part of the Coders Den category.

Reply
 
Old 11/20/2013, 19:57   #16
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
ok now works

but if i start script first and then game it throw me error

Can't get ModuleGetBaseAdress! @error:21, @extended:299

but when i press OK on msgbox then it work normal, shows me adress and score in tooltip

and if i start game first then script, no errors

And tell me pls if i want use multiple pointers do i need to change only this

Code:
Dim $offsets[1] = [0x30] ; to 
Dim $offsets[3] = [0x30, 0xc4, 0x280]
and this

Code:
("Address: " & $memoryData[0] & @CRLF & "Value: " & $memoryData[1], 0, 0) ; to
("Address: " & $memoryData[0] & @CRLF & "Value: " & $memoryData[3], 0, 0)



and have next problem with this

Code:
; write new score to game memory
Func _setScrore()
	Local $unicode
	$read = GUICtrlRead($Input2) ; read data from input box
	;_KDMemory_WriteProcessMemory($handles, $baseAddress, $type, $value, $offsets = 0)
	;_KDMemory_WriteProcessMemory($handles, $address, "dword", $read, $offsets[1])
	_KDMemory_WriteProcessString($handles, $address, $read, $offsets, $unicode = 0)
EndFunc
when i write number 1 in input and press button to add score it gives 49 not 1, why is that ?






and 1 more problem i have
when i start script first it show me game is not runnning and score is set to 0,
and when i start game it say game is running but not reading score from game

but if i start game first and then script it works normal

So my question is what i need to make to program automatic hook on game when i open game = read data / close / open game again read data
because if game crash i need to turn off script and first start game then open script but i want to open script first then game

here is all code for script

mlukac89 is offline  
Old 11/21/2013, 00:50   #17
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
If you want to use a pointer with more than one offset, you have to add the offsets to the array.
Code:
Dim $offsets[5] = [0, 1, 2, 3, 4]
_KDMemory_ReadProcessMemory() will still return an array with two elements. The first element is the address and the second element is the value of the address.

Quote:
and if i start game first then script, no errors
[...]
and 1 more problem i have
when i start script first it show me game is not runnning and score is set to 0,
and when i start game it say game is running but not reading score from game

but if i start game first and then script it works normal

So my question is what i need to make to program automatic hook on game when i open game = read data / close / open game again read data
There are a few errors in your script. My example works fine. But that's easy to explain. The process ID identifies a running process and is unique. If the process isn't running, there won't be a process ID (= 0). You have to get the process ID constantly. Just put the line in the While loop.

Quote:
when i write number 1 in input and press button to add score it gives 49 not 1, why is that ?
The address 'holds' an integer. 49 is the character code for '1'. You have to use the _KDMemory_WriteProcessMemory() function.

I updated my UDF. Download the new version.
KDeluxe is offline  
Thanks
1 User
Old 11/21/2013, 16:25   #18
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
OK thx for help now is all work fine
mlukac89 is offline  
Reply


Similar Threads Similar Threads
[C#]Reading Memory / Pointer with multiple Offsets.
01/12/2013 - .NET Languages - 23 Replies
I am used to coding in AutoIt. I am trying to move my project into C# but I have only about 2-3 weeks of experience. In AutoIt, I have this code here that reads the process memory and returns a value. $map = _MemoryRead(0x00B5CCB8, $handle) // Pointer address 0x00B5CCB8 $map = _MemoryRead($map + 0x02, $handle) // Offset 0x02 $map = _MemoryRead($map + 0xBD, $handle) // Second Offset 0xBD I am trying desperately to convert this to C# language and I need some help. Here is what I have...
[Vb.NET] WoW Memory Reading
11/20/2010 - World of Warcraft - 1 Replies
Hallo, Ist es irgendwie möglich mit VB.NET die Memory von WoW auszulesen wie bei C# mit der BlackMagic.dll Danke m vorraus
Help with memory reading. C++.
06/12/2010 - Aion - 0 Replies
Hello people, I'm kinda new to memory reading in c++. Been doing similiar stuff, and done some other stuff like packet hacks etc but anyway, to the issue. I get weird values from AION when reading. And I'm prolly going about this totally wrong so I'll post you the code and hopefully some kind soul out there will point me in the right direction. int address = 0xA82424; int value; DWORD pid; if(!GameWindow) {
Memory reading etc.
06/18/2008 - General Coding - 11 Replies
-
Memory reading help...
02/10/2007 - Conquer Online 2 - 1 Replies
Hi, I need to read the amount of arrows on an archer (0-500). I have the pointer and offset, and i can get the right number in cheat engine, however whenever i try to read it from autohotkey i always get 0. Don't know why. I've always read 4 byte data before so i don't really know if i have the right code for 2 byte data. Here's the autohotkey code ExtInt(ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4); From AutoHotKey Help { Loop %pSize% result += *(&pSource +...



All times are GMT +2. The time now is 13:52.


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.