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 


[SOLVED] The problem with "ToggleBox"

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Thu Oct 25, 2012 1:20 pm    Post subject: [SOLVED] The problem with "ToggleBox" Reply with quote

Hello forum users!

Tell how, me to use ToggleBox?

Code:
function CEToggleBox1Click (sender)
if writeInteger ("01C8FF0", 1)
else
    writeInteger ("01C8FF0", 0)
end


With this code, I receive an error.


Last edited by GradenT on Tue Oct 30, 2012 9:20 am; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Oct 25, 2012 2:52 pm    Post subject: Re: The problem with ToggleBox Reply with quote

Code:
function CEToggleBox1Click(sender)
  local state = getProperty(sender,"State")

  if state=="cbChecked" then
    writeInteger ("01C8FF0", 1)
  else
    writeInteger ("01C8FF0", 0)
  end
end

_________________
Back to top
View user's profile Send private message MSN Messenger
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Sat Oct 27, 2012 4:42 am    Post subject: Reply with quote

Thank you very much !
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