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% }