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 


I have problems with scripts

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Yanagod
Newbie cheater
Reputation: 0

Joined: 15 Feb 2019
Posts: 24

PostPosted: Tue Feb 26, 2019 1:52 pm    Post subject: I have problems with scripts Reply with quote

function CEPanel3OnClick (sender)
UDF1.CEPanel3.Color = "clBlack"
end

I WANNA DO WHEN I CLICKED AGAIN I WANNA CHANGE COLOR WHAT SHOULD I DO?

----------------------------------------------------------------------------------------------------------------------------------

function CECheckbox1OnChange (sender)
UDF1.CELabel1.Font.Color = "clLime"
end

I DID IT BUT FONT COLOR NOT CHANGING WHAT CAN I DO HELP ME PLS Embarassed
Back to top
View user's profile Send private message AIM Address
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Feb 26, 2019 3:28 pm    Post subject: Reply with quote

I don't think it's meant to be a string, in Pascal clLime would probably be a constant variable defined by the standard library or whatever to be some hex code that looks "lime" colored. Try 0x00FF00 or something like that
...
yeah, http://wiki.freepascal.org/Colors#Table_of_standard_colors

Though it does look like it's meant to support strings, and CE does support MainForm.Color = '$00FF00', though 'clLime' just makes it black /shrug maybe a custom implementation that just supports a couple versions of hex?
...
Looks like it, here it's just calling lua_tointeger which tries to convert whatever you gave it to an integer, but lua's standard functions don't have any reason to support Pascal's color strings

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Feb 27, 2019 6:23 am    Post subject: Reply with quote

CE made using Lazarus Pascal : Here s pascal code color.

http://wiki.freepascal.org/Colors

ofcourse lua use hex format for color code

_________________
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 Tutorials 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