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 


convert panel color into hex [help]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sat May 12, 2018 8:33 pm    Post subject: convert panel color into hex [help] Reply with quote

How to convert panel color into hex color?

its different when i use
Code:

table = getAddressList().getMemoryRecordByDescription
table("Skin Color").value = me.CEPanel1.color

any solution?[/code]

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sat May 12, 2018 9:12 pm    Post subject: Reply with quote

Ohhhhh, i know it
Maybe Use this

Code:
Value = getAddressList.getMemoryRecordbyDescription("Skin Color")
UDF1.CEEdit1.Text = Value.Value


aku Ga pasti LOLZ [/quote]

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sat May 12, 2018 9:31 pm    Post subject: Reply with quote

memoryrecord.value is a string, while cepanel.color is a number. Convert the number to a string using whatever format is appropriate. Assuming the value type is 4-byte 0x00BBGGRR, this should work regardless if the memory record is using hex/decimal or signed/unsigned:
Code:
memrec.Value = ('0x%08X'):format(color)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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