MemoryRecord.setOptions

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
User avatar
sanitka
Expert Cheater
Expert Cheater
Posts: 493
Joined: Sat Aug 22, 2020 5:40 am
Reputation: 249

MemoryRecord.setOptions

Post by sanitka »

Hello

how to use setOptions ? (using CE 7.2) I tried many variants but failed

mr.setOptions(['moHideChildren','moAllowManualCollapseAndExpand','moManualExpandCollapse'])
attempt to call a nil value (field 'setOptions')

mr.setOptions('[moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse]')
attempt to call a nil value (field 'setOptions')

mr.setOptions([moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse])
unexpected symbol near '['

Thx

User avatar
YoucefHam
Expert Cheater
Expert Cheater
Posts: 92
Joined: Sun Jan 21, 2018 10:21 pm
Reputation: 209

Re: MemoryRecord.setOptions

Post by YoucefHam »

sanitka wrote:
Thu Apr 01, 2021 12:52 am
Hello

how to use setOptions ? (using CE 7.2) I tried many variants but failed

mr.setOptions(['moHideChildren','moAllowManualCollapseAndExpand','moManualExpandCollapse'])
attempt to call a nil value (field 'setOptions')

mr.setOptions('[moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse]')
attempt to call a nil value (field 'setOptions')

mr.setOptions([moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse])
unexpected symbol near '['

Thx
Use it like this

Code: Select all

mr = AddressList.createMemoryRecord()
mr.Description = "Group 01"
mr.isGroupHeader = true
mr.Options = '[moManualExpandCollapse , moAllowManualCollapseAndExpand]' --moHideChildren/moActivateChildrenAsWell/moDeactivateChildrenAsWell/moRecursiveSetValue/moAllowManualCollapseAndExpand/moManualExpandCollapse

mr2 = AddressList.createMemoryRecord()
mr2.Description = "Group 02"
mr2.isGroupHeader = true
mr2.Options = '[moManualExpandCollapse , moAllowManualCollapseAndExpand]' --moHideChildren/moActivateChildrenAsWell/moDeactivateChildrenAsWell/moRecursiveSetValue/moAllowManualCollapseAndExpand/moManualExpandCollapse
mr2.appendToEntry(mr) --or mr2.appendToEntry(getAddressList().getMemoryRecordByDescription("Groupe 01"))
See [Link]

Post Reply

Who is online

Users browsing this forum: No registered users