Posted: Sat Jun 11, 2016 9:14 am Post subject: Simple button problem
Hello, i just want to make two simple button that changes two 4byte values onpress. However im clearly doing something wrong since it does not work.
Code:
function CEButton1Click(sender)
writeInteger("[game.exe+18E0E38]", 1746150)
writeInteger("[game.exe+18E1048]", 0)
end
function CEButton2Click(sender)
writeInteger("[game.exe+18E0E38]", 1746150)
writeInteger("[game.exe+18E1048]", 1)
end
The first parameter of the writeInteger function is an address. If you include the square brackets, that's dereferencing that address and writing the value into the dereferenced address. In other words, if that's not a L1 pointer with the offset being 0, then remove those square brackets.
Otherwise, check to make sure those addresses are correct and that those functions are assigned to the buttons' OnClick events. _________________
I don't know where I'm going, but I'll figure it out when I get there.
The first parameter of the writeInteger function is an address. If you include the square brackets, that's dereferencing that address and writing the value into the dereferenced address. In other words, if that's not a L1 pointer with the offset being 0, then remove those square brackets.
Otherwise, check to make sure those addresses are correct and that those functions are assigned to the buttons' OnClick events.
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