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 


Color changing (original list)

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

Joined: 27 Sep 2018
Posts: 43

PostPosted: Sat Jul 18, 2020 7:16 am    Post subject: Color changing (original list) Reply with quote

hi.

I know how to change Color like this : CETrainer.CELabel1.Color = 0x00ff00
but how to use directly the name in Form Designer : White Yellow Default etc etc
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Jul 18, 2020 8:17 am    Post subject: Reply with quote

In Form Designer, so open Form Designer by create form or edit existing form, then see attached pictures.
Notes, Font.Color is different with object/component color.



Capture.JPG
 Description:
Object/Component Color in Form Designer
 Filesize:  93.83 KB
 Viewed:  2000 Time(s)

Capture.JPG



Capture1.JPG
 Description:
Font Color in Form Designer
 Filesize:  111.86 KB
 Viewed:  2000 Time(s)

Capture1.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Sanglante
Cheater
Reputation: 0

Joined: 27 Sep 2018
Posts: 43

PostPosted: Sat Jul 18, 2020 8:54 am    Post subject: Reply with quote

You don't understand my request. Let's say my value is good the script change color of one label with CETrainer.CELabel1.Color = 0x00ff00
value is no more good i want to make it back to Default color
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Jul 18, 2020 9:46 am    Post subject: Reply with quote

Sanglante wrote:
but how to use directly the name in Form Designer : White Yellow Default etc etc


My language is not English, so that is why I don't understand what you mean on the first post or I mistranslate it.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1516

PostPosted: Sat Jul 18, 2020 11:49 am    Post subject: Reply with quote

Add a test to your existing hacking code. Or send your hacking code here, the masters will help to add it.
Code:

local chk1=false

function HackCheck()
if chk1==true then
CETrainer.CELabel1.color=0xffffff
else
CETrainer.CELabel1.color=0x00ff00
end
end

---your Hack kode

function myHack()
-- . . .
-- your Hack succes!
chk1=true
HackCheck()
---your Hack no succes ..
-- else
--chk1=false
--HackCheck()
--end
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Jul 18, 2020 1:27 pm    Post subject: Reply with quote

I fell like I come from other planet, because maybe only me not understand what is he requested. Bravo @Aylin, you are able to understand him.
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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