zikenzie Posted December 29, 2011 Share Posted December 29, 2011 (edited) Hi, I am trying to Read from pointer. And value is always 0. Here is my code: $Adresse = 0x0057c370 Dim $Offset[2] = [0, 0x0] While 1 $Process = _MemoryOpen(ProcessExists("Tutorial-i386.exe")) If Not @error Then $Value = _MemoryPointerRead($Adresse, $Process, $Offset) If Not @error Then ToolTip($Value[1], 0, 0) _MemoryClose($Process) EndIf Sleep(100);<<<<<<< Note this sleep this is how fast we read memory WEnd The pointer address and offset is true. The result is always $value[1] = 0 And I am using the latest version of NomadMemory. Thank you for your helps. Edited December 29, 2011 by zikenzie Link to comment Share on other sites More sharing options...
zikenzie Posted December 29, 2011 Author Share Posted December 29, 2011 Problem solved. There is a problem with latest NomadMemory and latest version of AutoIT. I installed 3.3.6.1 version of AutoIt to solve the problem and it worked. Thank you. Link to comment Share on other sites More sharing options...
FaridAgl Posted December 29, 2011 Share Posted December 29, 2011 I think i have the same problem, can any one tell me why NomadMemory doesn't work with AutoIt ? I don't get any error, it just doesn't work ( The same script work fine in 3.3.6.1 ). http://faridaghili.ir Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 30, 2011 Share Posted December 30, 2011 You guys need to post a reproducer (short, working example script), saying "it doesn't work" means nothing. Not only will many people ignore threads that don't provide the basics, but when someone still tries to help they often can't reproduce the error since it was the poster who did something wrong! And that is quite possibly what happens now. #include "NomadMemory.au3" $struct = DllStructCreate("dword") DllStructSetData($struct, 1, 11) $ptr = DllStructGetPtr($struct) $memory = _MemoryOpen(@AutoItPID) ConsoleWrite(_MemoryRead($ptr, $memory) & @LF) _MemoryWrite($ptr, $memory, 22) ConsoleWrite(DllStructGetData($struct, 1) & @LF) Runs fine. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valik Posted December 30, 2011 Share Posted December 30, 2011 I can't imagine this doesn't break our rules. Thread locked. Link to comment Share on other sites More sharing options...
Recommended Posts