viewing paste Unknown #7325 | Autohotkey

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
ReadMemory(MADDRESS,PROGRAM)
{
    hModule := DllCall("LoadLibrary", "str", "rpm.dll")
        
    if ( A_LastError )
    {
        MsgBox Error: %A_LastError% | If this value is 193, then you need to use a 32-bit version of AutoHotkey OR rpm.dll is missing
        return -1
    }
    
    value := DllCall("rpm\getMapID", "UInt", MADDRESS, "UInt", PROGRAM)
    
    if ( A_LastError )
    {
        MsgBox Error: %A_LastError% | If this value is 193, then you need to use a 32-bit version of AutoHotkey
        return -1
    }
 
    
    DllCall("FreeLibrary", "UInt", hModule)
    return value  
}
 
 
#F::
{
    WinGet mPID, PID, A
    
    mapAddr := 0x814290
    offset := 0
    value := ReadMemory(mapAddr+offset, mPID)
    
    MsgBox value: %value%
}
Viewed 572 times, submitted by Guest.