Posted: Wed Oct 09, 2024 9:37 pm Post subject: CT show value but not in lua script, can help check?
For e.g.: my staticAddress is BEBF90 while offset is 16. So I add address manually as 00BEBFA0 in address and pointer as 16. It show the value correctly in the CT so I try in LUA script but it did not capture the value. Anyone can help if I script it wrongly? It always return 0 value while CT there shown correct value as in 10 for example.
Code:
local baseAddress = 0x00BEBF90
local offset = 0x0016
local criteria = 5
local hotkey = VK_F1
local timer = createTimer(nil)
timer.Interval = 1000
function checkMemory()
local address = baseAddress + offset
local value = readInteger(address)
if value >= criteria then
send(hotkey)
end
end
function startTimer()
timer.OnTimer = checkMemory
timer.Enabled = true -- Start the timer
print("Timer started.")
end
function stopTimer()
timer.Enabled = false -- Stop the timer
print("Timer stopped.")
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