; 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
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.
[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 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 +...