Posted: Mon May 18, 2020 8:57 am Post subject: How to add an event to a chosen address?
Hello. I found an address useful for my purposes. I put it on the list. I want it to be monitored while I continue to use the app processed by Cheat Engine. If the value of that address changes even for a few moments, I want a function that stores those changes to be called. It's possible?
local al = AddressList or getAddressList()
local currentVal = 8
function monitorValue()
local mr1 = al.getMemoryRecordByDescription("Element")
local changedVal = mr1.Value
if changedVal ~= currentVal then
print('Value has change from '..currentVal..' to '..changedVal)
-- run your function here
currentVal = changedVal
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum