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 Auto Assemble in checkbox

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

Joined: 27 Jul 2016
Posts: 73

PostPosted: Mon Jul 17, 2017 2:06 am    Post subject: Need help Auto Assemble in checkbox Reply with quote

Hello all member Very Happy
I'm from VietNamese .
I have this AOB : 1A 2B DD D3 17 63 E5
I use it in code Auto Assemble .
Is there a way for it to work in the checkbox ?
Tick checkbox [ENABLE] and [DISABLE] Embarassed
Thanks you for reading Embarassed
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 3

Joined: 01 Feb 2016
Posts: 514

PostPosted: Mon Jul 17, 2017 2:46 am    Post subject: Reply with quote

someone has already answered your question in an older post with the same AOB pattern your previous post

and this is LUA section, not AA.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 73

PostPosted: Mon Jul 17, 2017 3:41 am    Post subject: Reply with quote

OldCheatEngineUser wrote:
someone has already answered your question in an older post with the same AOB pattern your previous post

and this is LUA section, not AA.

Yes . I want it to work in the checkbox Very Happy
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 3

Joined: 01 Feb 2016
Posts: 514

PostPosted: Mon Jul 17, 2017 3:43 am    Post subject: Reply with quote

then check the script box!
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 73

PostPosted: Mon Jul 17, 2017 5:05 am    Post subject: Reply with quote

Up . help me Embarassed
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 3

Joined: 01 Feb 2016
Posts: 514

PostPosted: Mon Jul 17, 2017 5:44 am    Post subject: Reply with quote

if you dont know, in AA window under FILE tab you have:

ASSIGN TO CURRENT CHEAT TABLE

click on this option and you will get a tiny box like you, to tick it.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 73

PostPosted: Mon Jul 17, 2017 8:35 am    Post subject: Reply with quote

OldCheatEngineUser wrote:
if you dont know, in AA window under FILE tab you have:

ASSIGN TO CURRENT CHEAT TABLE

click on this option and you will get a tiny box like you, to tick it.

You do not understand my request.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 3

Joined: 01 Feb 2016
Posts: 514

PostPosted: Mon Jul 17, 2017 8:42 am    Post subject: Reply with quote

then explain what you want in a clear way.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
FreeER
Master Cheater
Reputation: 10

Joined: 09 Aug 2013
Posts: 326

PostPosted: Mon Jul 17, 2017 12:56 pm    Post subject: Reply with quote

pictures can sometimes help ...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 341

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

PostPosted: Mon Jul 17, 2017 1:17 pm    Post subject: Reply with quote

state,disableinfo=autoAssemble(enablescript)

autoAssemble(disablescript,disableinfo)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 148

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

PostPosted: Mon Jul 17, 2017 1:39 pm    Post subject: Reply with quote

Code:
-- enablescript is a script copied from memoryrecord AA script, code from "[ENABLE]" section
-- disablescript is a script copied from memoryrecord AA script, code from "[DISABLE]" section
-- state will be true when autoAssemble successfully execute the script


-- enable
state, disableinfo=autoAssemble(enablescript)

-- disable
state=autoAssemble(disablescript, disableinfo)




Code:
-- fullscript is a full script directly copied from memoryrecord AA script.
-- state will be true when autoAssemble successfully execute the script

-- enable
state, disableinfo=autoAssemble(fullscript)

-- disable
state=autoAssemble(fullscript, disableinfo)





Quote:
Is there a way for it to work in the checkbox

Which checkbox? Checkbox placed on custom GUI (form created with "Form Designer")?
If yes, add checkbox OnClick event with "Form Designer", then use this script:

Code:
function CECheckbox1Click(sender)
  if sender.Checked then -- enable the script
    local state, disableinfo = autoAssemble(fullscript_1)
    disableinfo_fullscript_1 = disableinfo


  else  -- disable the script
    local state = autoAssemble(fullscript_1, disableinfo_fullscript_1)
  end
end


Above script has a downside, checkbox will be checked even when autoAssemble can not execute - there's no feedback.

If you need the feedback, here use this one:
Code:
function CECheckbox1Click(sender)
  if sender.Checked then -- enable the script
    local state, disableinfo = autoAssemble(fullscript_1)
    disableinfo_fullscript_1 = disableinfo

    if not state then -- feedback
      local OnClick=sender.OnClick
      sender.OnClick = nil
      sender.Checked = false
      sender.OnClick = OnClick
    end



  else  -- disable the script
    local state = autoAssemble(fullscript_1, disableinfo_fullscript_1)

    if not state then -- feedback
      local OnClick=sender.OnClick
      sender.OnClick = nil
      sender.Checked = true
      sender.OnClick = OnClick
    end
  end
end

_________________
Back to top
View user's profile Send private message MSN Messenger
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 73

PostPosted: Tue Jul 18, 2017 3:59 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Code:
-- enablescript is a script copied from memoryrecord AA script, code from "[ENABLE]" section
-- disablescript is a script copied from memoryrecord AA script, code from "[DISABLE]" section
-- state will be true when autoAssemble successfully execute the script


-- enable
state, disableinfo=autoAssemble(enablescript)

-- disable
state=autoAssemble(disablescript, disableinfo)


Code:
-- fullscript is a full script directly copied from memoryrecord AA script.
-- state will be true when autoAssemble successfully execute the script

-- enable
state, disableinfo=autoAssemble(fullscript)

-- disable
state=autoAssemble(fullscript, disableinfo)





Quote:
Is there a way for it to work in the checkbox

Which checkbox? Checkbox placed on custom GUI (form created with "Form Designer")?
If yes, add checkbox OnClick event with "Form Designer", then use this script:

Code:
function CECheckbox1Click(sender)
  if sender.Checked then -- enable the script
    local state, disableinfo = autoAssemble(fullscript_1)
    disableinfo_fullscript_1 = disableinfo


  else  -- disable the script
    local state = autoAssemble(fullscript_1, disableinfo_fullscript_1)
  end
end


Above script has a downside, checkbox will be checked even when autoAssemble can not execute - there's no feedback.

If you need the feedback, here use this one:
Code:
function CECheckbox1Click(sender)
  if sender.Checked then -- enable the script
    local state, disableinfo = autoAssemble(fullscript_1)
    disableinfo_fullscript_1 = disableinfo

    if not state then -- feedback
      local OnClick=sender.OnClick
      sender.OnClick = nil
      sender.Checked = false
      sender.OnClick = OnClick
    end



  else  -- disable the script
    local state = autoAssemble(fullscript_1, disableinfo_fullscript_1)

    if not state then -- feedback
      local OnClick=sender.OnClick
      sender.OnClick = nil
      sender.Checked = true
      sender.OnClick = OnClick
    end
  end
end

Thanks for the help <3
This is Auto Assemble .
I want to put it into the checkbox

Back to top
View user's profile Send private message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 73

PostPosted: Wed Jul 19, 2017 6:28 am    Post subject: Reply with quote

Help me Sad
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