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 


Creating an addresslist group

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
chrare
How do I cheat?
Reputation: 0

Joined: 30 Mar 2013
Posts: 1

PostPosted: Sat Mar 30, 2013 11:06 pm    Post subject: Creating an addresslist group Reply with quote

Is there a method for creating a group/header record in the main address list with LUA?

Alternatively, I can add a fake record like this (but it is not very neat at all):

Code:
local al = getAddressList()
local record = addresslist_createMemoryRecord(al)
memoryrecord_appendToEntry(record, parent)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Mar 31, 2013 10:59 am    Post subject: Reply with quote

hmm, not in 6.2. (i've just added it to 6.2+ though)

What you could do is saveTable(tempfilename) , add the GroupHeader specification to the file, and then loadTable(tempfilename) to load it back.

but honestly, I doubt this is worth the time and effort

_________________
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
Rhagic
Advanced Cheater
Reputation: 4

Joined: 23 Aug 2011
Posts: 94

PostPosted: Tue May 17, 2016 4:05 am    Post subject: Reply with quote

Dark Byte wrote:
hmm, not in 6.2. (i've just added it to 6.2+ though)


Did you add LUA method for creating Group Headers? I've been looking through the documentation and the metatable for addresslist and I've not found one.

Is is an argument to createMemoryRecord? I'm having trouble making sense of the .pas file.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue May 17, 2016 4:39 am    Post subject: Reply with quote

record.IsGroupHeader=true
_________________
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
Rhagic
Advanced Cheater
Reputation: 4

Joined: 23 Aug 2011
Posts: 94

PostPosted: Tue May 17, 2016 5:05 am    Post subject: Reply with quote

Dark Byte wrote:
record.IsGroupHeader=true


Awesome, thanks!

Is it possible to set 'moHideChildren' on a record's options from LUA? I've tried a couple things but no success yet.
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: Tue May 17, 2016 7:26 am    Post subject: Reply with quote

Not documented in main.lua
Code:
record.Options = "[moHideChildren]"

_________________


Last edited by mgr.inz.Player on Tue May 17, 2016 7:32 am; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
Rhagic
Advanced Cheater
Reputation: 4

Joined: 23 Aug 2011
Posts: 94

PostPosted: Tue May 17, 2016 7:29 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Code:
record.Options = "[moHideChildren]"


That works. Thank you!
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: Tue May 17, 2016 7:32 am    Post subject: Reply with quote

Options property is a set.

Available options:
Code:
moHideChildren
moActivateChildrenAsWell
moDeactivateChildrenAsWell
moRecursiveSetValue
moAllowManualCollapseAndExpand
moManualExpandCollapse



You can use two options or more, just use semicolon:
Code:
record.Options = "[moHideChildren, moDeactivateChildrenAsWell]"

_________________
Back to top
View user's profile Send private message MSN Messenger
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