Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to check a scipt is freeze or unfreeze?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Sat Feb 02, 2019 9:38 pm    Post subject: how to check a scipt is freeze or unfreeze? Reply with quote

i write a lua,to active a checkbox to freeze a ce srcipt,or unactive a checkbox to unfreeze a ce srcipt

but there is a problem,if the script run flase(unfreeze),the checkbox is also be actived...
===============
function CECheckbox1Change(sender)
if(checkbox_getState(UDF1.CECheckbox1)==1)then
memoryrecord_freeze(addresslist_getMemoryRecordByDescription(addresslist,[[AA]]))
else
memoryrecord_unfreeze(addresslist_getMemoryRecordByDescription(addresslist,[[AA]]))
end
end
===============


how to write a lua

when the scipt "AA" run false(unfreeze),the checkbox do not be active.
===============



2019-02-03_113420.jpg
 Description:
 Filesize:  114.56 KB
 Viewed:  2860 Time(s)

2019-02-03_113420.jpg


Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sat Feb 02, 2019 11:42 pm    Post subject: Reply with quote

Code:
function CECheckbox1Change(sender)
  addresslist=getAddressList()
if UDF1.CECheckbox1.Checked==true then
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_freeze(memrec)
showMessage("Enabled")
else
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_unfreeze(memrec)
showMessage("Disabled")
end
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Sun Feb 03, 2019 12:06 am    Post subject: Reply with quote

Aylin wrote:
Code:
function CECheckbox1Change(sender)
  addresslist=getAddressList()
if UDF1.CECheckbox1.Checked==true then
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_freeze(memrec)
showMessage("Enabled")
else
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "AA")
memoryrecord_unfreeze(memrec)
showMessage("Disabled")
end
end


this code work incorrect

The Srcipt do not run success(still unfreeze in CE),but the checkbox is be actived and messenge is show as "Enable"
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sun Feb 03, 2019 12:20 am    Post subject: Re: how to check a scipt is freeze or unfreeze? Reply with quote

table = getAddressList().getMemoryRecordByDescription
function CECheckbox1Change(sender)
if UDF1.CECheckbox1.checked == true then
table("AA").active = true
else
table("AA").active = false
end
end

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Feb 03, 2019 12:23 am    Post subject: Reply with quote



It works well for me.
You can try.

https://www.dosyaupload.com/62uz

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Sun Feb 03, 2019 12:38 am    Post subject: Reply with quote

Aylin wrote:


It works well for me.
You can try.

https://www.dosyaupload.com/62uz


already try
your code is make script freeze or unfreeze,is not check script freezed or unfreezed by now


we run the code "memoryrecord_freeze(memrec) "

but sometime,srcipt can not run success,the sript is still unfreeze in ce addlist panel

i need to check the scipt run success or no success

for ex
the code of "AA" is

alloc(point,2048)
registersymbol(wrong)


this code can not work success,because it is a wrong scipt


but when i click the checkbox,the checkbox is still be active
nomatter the scipt is run success or not success
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sun Feb 03, 2019 1:27 am    Post subject: Re: how to check a scipt is freeze or unfreeze? Reply with quote

Maybe like this?
Code:

table = getAddressList().getMemoryRecordByDescription
function CECheckbox1Change(sender)
if table("AA").active == true then
sender.checked = true
showMessage("Script AA is active")
else
sender.checked = false
showMessage("Script AA is not active")
end
end

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites