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 


Disable another checkbox CE 7.0

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

Joined: 02 Nov 2018
Posts: 56

PostPosted: Sat Jan 18, 2020 9:45 am    Post subject: Disable another checkbox CE 7.0 Reply with quote

CE 7.0 with this script always frozen, but in CE 6.8.3 all work fine.
Can i bypass it effect, or it already fixed on githab?

Code:
local freeze = 0
local oncar = 0

function UDF1_CECheckbox1Click(sender)
   if freeze == 0 then
      oncar = 0
      freeze = 1
      UDF1.CECheckbox2.State = cbUnchecked
      UDF1.CECheckbox1.State = cbChecked
   elseif freeze == 1 then
      freeze = 0
      UDF1.CECheckbox1.State = cbUnchecked
   end
end

function UDF1_CECheckbox2Click(sender)
   if oncar == 0 then
      freeze = 0
      oncar = 1
      UDF1.CECheckbox1.State = cbUnchecked
      UDF1.CECheckbox2.State = cbChecked
   elseif oncar == 1 then
      oncar = 0
      UDF1.CECheckbox2.State = cbUnchecked
   end
end
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Jan 18, 2020 10:09 am    Post subject: Reply with quote

fixed on github if you use lazarus 2.0.6

anyhow, to make it function on 7.0 as well:
Code:

local freeze = 0
local oncar = 0

function UDF1_CECheckbox1Click(sender)
  UDF1.CECheckbox1.OnClick=nil
  UDF1.CECheckbox2.OnClick=nil
   if freeze == 0 then
      oncar = 0
      freeze = 1
      UDF1.CECheckbox2.State = cbUnchecked
      UDF1.CECheckbox1.State = cbChecked
   elseif freeze == 1 then
      freeze = 0
      UDF1.CECheckbox1.State = cbUnchecked
   end

  UDF1.CECheckbox1.OnClick=UDF1_CECheckbox1Click
  UDF1.CECheckbox2.OnClick=UDF1_CECheckbox2Click
end

function UDF1_CECheckbox2Click(sender)
  UDF1.CECheckbox1.OnClick=nil
  UDF1.CECheckbox2.OnClick=nil
   if oncar == 0 then
      freeze = 0
      oncar = 1
      UDF1.CECheckbox1.State = cbUnchecked
      UDF1.CECheckbox2.State = cbChecked
   elseif oncar == 1 then
      oncar = 0
      UDF1.CECheckbox2.State = cbUnchecked
   end
  UDF1.CECheckbox1.OnClick=UDF1_CECheckbox1Click
  UDF1.CECheckbox2.OnClick=UDF1_CECheckbox2Click
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
Antoshick
Advanced Cheater
Reputation: 0

Joined: 02 Nov 2018
Posts: 56

PostPosted: Sat Jan 18, 2020 10:23 am    Post subject: Reply with quote

Dark Byte wrote:
fixed on github if you use lazarus 2.0.6

anyhow, to make it function on 7.0 as well:
Code:

local freeze = 0
local oncar = 0

function UDF1_CECheckbox1Click(sender)
  UDF1.CECheckbox1.OnClick=nil
  UDF1.CECheckbox2.OnClick=nil
   if freeze == 0 then
      oncar = 0
      freeze = 1
      UDF1.CECheckbox2.State = cbUnchecked
      UDF1.CECheckbox1.State = cbChecked
   elseif freeze == 1 then
      freeze = 0
      UDF1.CECheckbox1.State = cbUnchecked
   end

  UDF1.CECheckbox1.OnClick=UDF1_CECheckbox1Click
  UDF1.CECheckbox2.OnClick=UDF1_CECheckbox2Click
end

function UDF1_CECheckbox2Click(sender)
  UDF1.CECheckbox1.OnClick=nil
  UDF1.CECheckbox2.OnClick=nil
   if oncar == 0 then
      freeze = 0
      oncar = 1
      UDF1.CECheckbox1.State = cbUnchecked
      UDF1.CECheckbox2.State = cbChecked
   elseif oncar == 1 then
      oncar = 0
      UDF1.CECheckbox2.State = cbUnchecked
   end
  UDF1.CECheckbox1.OnClick=UDF1_CECheckbox1Click
  UDF1.CECheckbox2.OnClick=UDF1_CECheckbox2Click
end



On this page I can usually get a fresh fixed exe file?
Code:
https://github.com/cheat-engine/cheat-engine/releases/tag/7.0

CheatEngine70.exe 17.9 MB

I will wait for the update there because the compilation is complicated.
Now will use this bypass method, thank
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