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 


memoryrecordhotkey description and string [Edit]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sat Mar 10, 2012 4:48 pm    Post subject: memoryrecordhotkey description and string [Edit] Reply with quote

What is the difference between memoryrecordhotkey_getDescription(hotkey) and
memoryrecordhotkey_getHotkeyString(hotkey)


And is it possible to use Tab control and scrollbars in main form?


Last edited by Freiza on Sun Mar 11, 2012 5:27 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Mar 10, 2012 5:51 pm    Post subject: Reply with quote

memoryrecordhotkey_getDescription returns the optional description of a hotkey entry
memoryrecordhotkey_getHotkeyString returns the hotkey keys as a string

there is no tab or scrollbar support, but you can create a button that when clicked hides all nonrelated panels and only shows a specific panel

_________________
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
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sat Mar 10, 2012 6:11 pm    Post subject: Reply with quote

Please give me an example I am not getting it.

like I am not getting what to pass as parameter.

and how do I use
addresslist_getMemoryRecordByID(addresslist, ID)
Using description was easy because I set that description but what should I do with ID?
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Mar 10, 2012 6:35 pm    Post subject: Reply with quote

if mrh is a memoryrecordhotkey object then you can do:
Code:

description=memoryrecordhotkey_getDescription(mrh);
hotkeytext=memoryrecordhotkey_getHotkeyString(mrh);

control_setCaption(CEFORM_LabelX, description." - ".hotkeytext)

to set the text of CEFORM_LabelX


Quote:

and how do I use
addresslist_getMemoryRecordByID(addresslist, ID)

Once you have the ID of a memoryrecord you can change the description as much as you want, the id never changes.
I recommend using addresslist_getMemoryRecordByDescription once (e.g in the lua script engine window) to get the id

_________________
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
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sat Mar 10, 2012 6:40 pm    Post subject: Reply with quote

Do you mean like this:


Code:
mrh =memoryrecord_getHotkeyByID(memoryrecord, 142)
description=memoryrecordhotkey_getDescription(mrh);
hotkeytext=memoryrecordhotkey_getHotkeyString(mrh);

control_setCaption(CEFORM_LabelX, description." - ".hotkeytext)


Thank You very much.
Now please answer to xmplayer question.
Back to top
View user's profile Send private message Send e-mail
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sun Mar 11, 2012 5:26 am    Post subject: Reply with quote

i have set two hotkeys for a single memory record.

',' for increase the value and '.' for decreasing the value.{it is comma and period}

But the hotkeyID is unique for each memory record now what should I do?

And,

Code:
description=memoryrecordhotkey_getDescription(mrh);


How do I get mrh object.

Till now I am using
Code:
mrh = memoryrecord_getHotkey(memoryrecord, index)

But index is very difficult to use. Is index starts from the first memoryrecord of cheat table or it starts from the first memory record of the group.
Is there something like
Code:
mrh = memoryrecord_getHotkey(memoryrecord, description)



index problem.jpg
 Description:
What is the index of [[ , is increase and . is decrease (Don't tick this box) ]] this memory record
 Filesize:  82.44 KB
 Viewed:  16340 Time(s)

index problem.jpg



_________________
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Mar 11, 2012 1:18 pm    Post subject: Reply with quote

the index of a hotkey is a unique value specific to that memoryrecord. If you delete a hotkey and add a new one, the ID will be different

(The same as the ID of a memoryrecord is unique to the addresslist)

_________________
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
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sun Mar 11, 2012 3:41 pm    Post subject: Reply with quote

Thank You very much.
_________________
Back to top
View user's profile Send private message Send e-mail
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