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 


Unsure of how to create working check mark boxes in lua

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

Joined: 28 May 2018
Posts: 2

PostPosted: Mon May 28, 2018 4:54 am    Post subject: Unsure of how to create working check mark boxes in lua Reply with quote

I put this together as a base but it's not necessary. I got it from a youtuber..


function CECheckbox1Change(sender)
if sender.state==1 then
writeBytes('["BloonsTD5.exe"+00D32AA8]+64',010000000100000001000000)
else
writeBytes('["BloonsTD5.exe"+00D32AA8]+64',320000004100000055000000)
end


All I need is for the check box to change when I press a key. What is the code for this?
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: Mon May 28, 2018 5:31 am    Post subject: Reply with quote

Code:

if sender.Checked then
  print("Checked")
else
  print("Unchecked")
end


as for the writebytes, that's wrong. You need to give it a bytetable, or a list of bytes seperated by commas

_________________
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
Shroototem
How do I cheat?
Reputation: 0

Joined: 28 May 2018
Posts: 2

PostPosted: Mon May 28, 2018 12:00 pm    Post subject: Reply with quote

Oh right. Thank you so much.
Is there a way to make it toggle when two different keys are pressed? Such as up Arrow activating it and down arrow deactivating it.
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