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
and this
and have next problem with this
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
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]
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
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