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 


CE multi plug-in (Color background and picture. Select and s

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Aylin
Grandmaster Cheater
Reputation: 10

Joined: 16 Feb 2017
Posts: 643

PostPosted: Sat Sep 26, 2020 3:56 am    Post subject: CE multi plug-in (Color background and picture. Select and s Reply with quote

I must warn you from the beginning; There is no new code in this post! Wink
There is a fun plugin for open source CE only.
Note: For a more comprehensive add-on, watch the video.


Link



However, I will write it to remind you of some of the codes that were accessed.

Coloring codes: (ExampleCE.png)

1) Plugins Multi Menu: Note; Trainer size=4.30 MB (I did not compress the pictures in order not to spoil the image quality.)
CheatEngine_PluginsV4_ByAylin.CETRAINER

or .. Manuel: "CEPlugins.lua" and "rgb-color-draw-step.png"

2) Main Form (CE) color:
Code:
getMainForm().color=0x00ffff


3) Found List Color:
Code:
getMainForm().Foundlist3.Color=0xffff00


4) Adress List Color:
Code:
GetAddressList().Control[0].BackgroundColor=0xffff00


5) Panel Image: Example: "ByAylin.png" 600x30 px
scriptFile = getCheatEngineDir()..'autorun' --Cheat Engine - Autorun Folder ..
Code:
local als=getMainForm().Panel4
if img then img.Destroy() end
img=createImage(als)
img.Align=alClient --img.Picture.assign(mf.Logo.Picture)
img.Height=30 img.Left=0 img.Top=0 img.Width=als.Width
img.Stretch=true img.sendToBack()
img.loadImageFromFile(scriptFile.."\\ByAylin.png")


You can develop the features yourself or share them here.
If you have different ideas, feel free to write.
Have fun. Smile



ByAylin.png
 Description:
 Filesize:  19.82 KB
 Viewed:  1442 Time(s)

ByAylin.png



rgb-color-draw-step.png
 Description:
 Filesize:  593.28 KB
 Viewed:  1442 Time(s)

rgb-color-draw-step.png



ExampleCE.png
 Description:
 Filesize:  83.97 KB
 Viewed:  1442 Time(s)

ExampleCE.png



CEPlugins.lua
 Description:

Download
 Filename:  CEPlugins.lua
 Filesize:  38.9 KB
 Downloaded:  37 Time(s)


_________________
Hi Hitler Take control of your trainer
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 MSN Messenger
ProB1
Advanced Cheater
Reputation: 0

Joined: 20 Jul 2019
Posts: 73
Location: At Home

PostPosted: Sat Sep 26, 2020 5:31 am    Post subject: Reply with quote

Good i will Make My Colors in Plugin Thanks !
_________________
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 38

Joined: 10 Apr 2015
Posts: 1530

PostPosted: Sun Oct 04, 2020 5:58 am    Post subject: Reply with quote

My simple version.

Code:
function createColorBox(Parent)
local box = createComponentClass('TColorBox', Parent)
 box.Parent = Parent
 return box
end

function colorMenuClick()
 if f then f.Destroy() end
 f = createForm()
 f.Position = 'poScreenCenter'
 f.Caption = 'Color'
 f.Color = 0xffffff  -- white
 f.setSize(170,50)
-- f.Hide()

 clrbox = createColorBox(f)
 clrbox.left = 10
 clrbox.top = 10
 clrbox.width = 150
 clrbox.height = 30
 clrbox.style = [['cbStandardColors', 'cbExtendedColors', 'cbSystemColors',
                 'cbIncludeNone', 'cbIncludeDefault']]
 clrbox.ItemIndex = 0

 function colorboxChange(sender)
  x = getMainForm()
  x.Color = clrbox.Selected
 end

 f.Show()
 clrbox.OnChange = colorboxChange
end
--======================================--
-- Add/Insert new menu to CE Main Menu
--======================================--
local mainForm = getMainForm()
local colorMenu = createMenuItem(mainForm)
colorMenu.Caption = [[Change Main Form Color]]

colorMenu.onClick = colorMenuClick
mainForm.PopupMenu2.Items.insert(15,colorMenu)

local mainMenu = mainForm.Menu.Items
local miColor
--Find "Color" item in main menu. Create one if not found.
for i=0,mainMenu.Count-1 do
   if mainMenu[i].Name == 'miColor' then miExtra = mainMenu[i] end
end
if miColor == nil then
   miColor = createMenuItem(mainForm)
   miColor.Name = 'miColor'
   miColor.Caption = 'Color'
   mainMenu.insert(mainMenu.Count-2,miColor)
end

--==============================================--
--Add "Check RGB Color" item to "Color" submenu
--==============================================--
local miCheckRGBcolor = createMenuItem(miColor)
miCheckRGBcolor.Caption = 'Change Main Form Color'
miCheckRGBcolor.onClick = colorMenuClick
miColor.add(miCheckRGBcolor)

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

Joined: 16 Feb 2017
Posts: 643

PostPosted: Sun Oct 04, 2020 8:57 am    Post subject: Reply with quote

@Corroder, I know you have more original posts in lua extensions section.
You are a master who has made many innovations. Wink

_________________
Hi Hitler Take control of your trainer
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 MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 38

Joined: 10 Apr 2015
Posts: 1530

PostPosted: Sun Oct 04, 2020 9:52 am    Post subject: Reply with quote

Aylin wrote:
@Corroder, I know you have more original posts in lua extensions section.
You are a master who has made many innovations. Wink


@Aylin, I don't mean to open up competition and doesn't care how many posts or on lua extensions section or other sections in CEF. My last post as a reply your original post isn't to compare to what you did. That just an option for who want to use it or want to learn. Not to prove anything else. Smile

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
visible
How do I cheat?
Reputation: 0

Joined: 18 Oct 2020
Posts: 2

PostPosted: Sun Oct 18, 2020 12:46 pm    Post subject: Reply with quote

I didn't understand what you meant with scriptFile = getCheatEngineDir()..'autorun' --Cheat Engine - Autorun Folder ..
Can you please explain it?

_________________
I am kinda sus.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 38

Joined: 10 Apr 2015
Posts: 1530

PostPosted: Mon Oct 19, 2020 8:24 pm    Post subject: Reply with quote

getCheatEngineDir(): Returns the folder Cheat Engine is located at

You can check by:

Code:
print(getCheatEngineDir())


On my computer the return result is : C:\Program Files\Cheat Engine 7.1\

So, check your cheat engine installed directory on your computer.
I assume that is: C:\Program Files\Cheat Engine 7.1\ (if your version is 64bit windows).

And now check inside the Cheat Engine directory, must be a folder with name 'autorun'. Note, all files with file extension as '.lua' will automatic execute when cheat engine start.

Then 'scriptFile = getCheatEngineDir()..autorun' meant the scriptfile with extesion lua (ie. scriptfile.lua) has added inside the cheat engine directory look as "C:\Program Files\Cheat Engine 7.1\autorun\scriptfile.lua" and will automatic execute when cheat engine start.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
visible
How do I cheat?
Reputation: 0

Joined: 18 Oct 2020
Posts: 2

PostPosted: Tue Oct 20, 2020 2:56 pm    Post subject: Reply with quote

Corroder wrote:
getCheatEngineDir(): Returns the folder Cheat Engine is located at

You can check by:

Code:
print(getCheatEngineDir())


On my computer the return result is : C:\Program Files\Cheat Engine 7.1\

So, check your cheat engine installed directory on your computer.
I assume that is: C:\Program Files\Cheat Engine 7.1\ (if your version is 64bit windows).

And now check inside the Cheat Engine directory, must be a folder with name 'autorun'. Note, all files with file extension as '.lua' will automatic execute when cheat engine start.

Then 'scriptFile = getCheatEngineDir()..autorun' meant the scriptfile with extesion lua (ie. scriptfile.lua) has added inside the cheat engine directory look as "C:\Program Files\Cheat Engine 7.1\autorun\scriptfile.lua" and will automatic execute when cheat engine start.


Oh! Thank you very much.

_________________
I am kinda sus.
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 Extensions 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