Jump to content

_MemoryRead always 0


Recommended Posts

Hello I'm trying to let a autoIt script read whenever someone has buffs on

#include "NomadMemory.au3"
Global $pid = _MemoryOpen("TRose.exe")
if @error Then
    MsgBox(0, "", "Error couldn't Open application")
    Exit
EndIf
While 1
    $check = _MemoryRead(0x0079802C, $pid, 'dword')
    if @error Then
        MsgBox(0, "", "Error couldn't Read Address")
        Exit
    EndIf   
    MsgBox(0, "", $check)
    Exit
WEnd

This is just a sample script, thou it ALWAYS returns 0 either way I can see in CE that it's suppost to say 1

Oh woaw this fixed it:

Local $ProcessID = ProcessExists('TRose.exe')
SetPrivilege("SeDebugPrivilege", 1)
Global $pid = _MemoryOpen($ProcessID)

Edited by Qvintus
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...