|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
The Dab Cheater Reputation: 0
Joined: 22 May 2017 Posts: 33
|
Posted: Tue Jul 11, 2017 1:44 pm Post subject: How to make a auto assemble script activate when I togglebox |
|
|
Been having problems with this recently. The script works when I toggle it from the cheat table. However then when I use something like this it does not work,
Code: |
form_show(UDF1)
getAutoAttachList().add("Pinball.exe")
function CloseClick()
closeCE()
return caFree
end
UDF1.OnClose = CloseClick
addresslist=getAddressList()
function CEToggleBox1Change(sender)
if (checkbox_getState(UDF1.CEToggleBox1) == 1) then
autoAssemble([[
aobscan(ball,83 86 74 01 00 00 01) // should be unique
alloc(newmem,$1000,7FF9C417C783)
label(code)
label(return)
newmem:
code:
//add dword ptr [rsi+00000174],01
jmp return
ball:
jmp newmem
nop
nop
return:
registersymbol(ball)
]])
else
autoAssemble([[
ball:
db 83 86 74 01 00 00 01
unregistersymbol(ball)
dealloc(newmem)
]])
end
end
|
This script should make the value of "balls" to freeze, however it does not do that. Is there anything wrong with this script that I am missing?
|
|
Back to top |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Tue Jul 11, 2017 3:00 pm Post subject: |
|
|
I use this actually:
local tag = sender.Tag;
if (tag == 0) then
sender.Tag = 1;
autoAssemble([[//enable script]])
else
sender.Tag = 0
autoAssemble([[//disable script]])
end
Code: | local tag = sender.Tag;
if (tag == 0) then
sender.Tag = 1;
autoAssemble([[
aobscan(ball,83 86 74 01 00 00 01) // should be unique
alloc(newmem,$1000,7FF9C417C783)
label(code)
label(return)
newmem:
code:
//add dword ptr [rsi+00000174],01
jmp return
ball:
jmp newmem
nop
nop
return:
registersymbol(ball)
]])
else
sender.Tag = 0
autoAssemble([[
ball:
db 83 86 74 01 00 00 01
unregistersymbol(ball)
dealloc(newmem)
]])
end |
|
|
Back to top |
|
|
|
|
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
|
|