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 


ToggleBox

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
hozukcan
How do I cheat?
Reputation: 0

Joined: 23 Apr 2014
Posts: 7

PostPosted: Wed Jun 25, 2014 4:34 am    Post subject: ToggleBox Reply with quote

Code:
[ENABLE]
aobscan(aob,d0 30 d0 66 C9 CC 01 48)
aob:
db 24 02 48
[DISABLE]


how can i use this with togglebox? i want to make on/off button
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Jun 25, 2014 4:41 am    Post subject: Reply with quote

In the onchange event of the togglebox use code like this:
Code:

function CEToggleBoxThingChange(sender)
  getAddressList().getMemoryRecordByDescription("entrythathasthis").Active=sender.Checked
end

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hozukcan
How do I cheat?
Reputation: 0

Joined: 23 Apr 2014
Posts: 7

PostPosted: Wed Jun 25, 2014 4:45 am    Post subject: Reply with quote

Dark Byte wrote:
In the onchange event of the togglebox use code like this:
Code:

function CEToggleBoxThingChange(sender)
  getAddressList().getMemoryRecordByDescription("entrythathasthis").Active=sender.Checked
end


Im sorry i wrote wrong code Smile

Code:
function CEButton1Click(sender)
--put this inside the Button function
local script1= addresslist_getMemoryRecordByDescription(getAddressList(), "1.hile") --change this according to your scripts..
memoryrecord_freeze(script1)-- this will Freeze (AKA enable) the the script
showMessage("hack is activated") --remove the -- before the showMessage, if you'd like to show that message..
--memoryrecord_unfreeze(script1)-- this will Freeze (AKA enable) the the script
end


i want to make on/off button for it.I think its possible with togglebox for enable and disable it.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Jun 25, 2014 6:00 am    Post subject: Reply with quote

read my previous post. Use the onChange event, and in there set the Active property of the memory record to true/false based on the state of the togglebox (the Checked property of the togglebox)

Code:

getAddressList().getMemoryRecordByDescription("1.hile").Active=sender.Checked

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
hozukcan
How do I cheat?
Reputation: 0

Joined: 23 Apr 2014
Posts: 7

PostPosted: Wed Jun 25, 2014 10:04 am    Post subject: Reply with quote

Dark Byte wrote:
read my previous post. Use the onChange event, and in there set the Active property of the memory record to true/false based on the state of the togglebox (the Checked property of the togglebox)

Code:

getAddressList().getMemoryRecordByDescription("1.hile").Active=sender.Checked


okay I get it.so where should i write on/off in panel? There is only one caption :S
Back to top
View user's profile Send private message
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