Code:
al = getAddressList()
-- rename your table entries to p1/p2 or change the strings here
readAddress = addresslist_getMemoryRecordByDescription(al, 'p1').Address
writeAddress = addresslist_getMemoryRecordByDescription(al, 'p2').Address
function OnTick(sender)
x = readInteger(readAddress)
-- change offset to correct / include new address
y = readInteger(readAddress + 0x20)
writeInteger(writeAddress, x)
-- change offset to correct / include new address
writeInteger(writeAddress + 0x20)
end
PosTimer = createTimer(nil, true)
-- change interval here (2nd param) to preferred interval time
timer_setInterval(PosTimer, 10)
timer_onTimer(PosTimer, OnTick)
if you have questions dm me or something, this should work. // btw 1k posts