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 


Need help with calling function

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Wed Jun 06, 2018 9:16 am    Post subject: Reply with quote

In the ...AllClick case... don't use sender? The sender is just the button/checkbox that was clicked so if you were manually calling it you could pass one or call it's doClick function (in the older syntax you have above, presumably it'd be control_doClick) but since you're changing two of them at the same time and doing it regardless of either's actual state... just don't use the sender and when calling the checkbox click functions pass in the same names you used to set their state above.
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Wed Jun 06, 2018 10:05 am    Post subject: This post has 1 review(s) Reply with quote

Quote:
I only learned how to use lua a week a half ago.
np, you learn things as they come up just like anything else Smile

If you really want to learn a lot related to CE browse through the celua.txt file in CE's install directory a few times (main.lua pre 6.7), it's got most things in it. You can also pay attention to other questions/answers in the lua scripting sub-forum to see the occasional thing not mentioned in the docs.

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming 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