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 


Transparent areas in window trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Thu Oct 04, 2012 9:19 pm    Post subject: Transparent areas in window trainer Reply with quote

Transparent areas in window trainer.

1. Create some *.exe (exemple "TargetTransparent.exe"). This is tiny WinAPI programm on C++

Code:
#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
   LPCWSTR p_ClassName = NULL;
   HWND aHandle = FindWindow(p_ClassName , L"CETrainer");
   SetWindowLong(aHandle, GWL_EXSTYLE, GetWindowLong(aHandle, GWL_EXSTYLE) | WS_EX_LAYERED);
   // clWhite = $FFFFFF
   SetLayeredWindowAttributes(aHandle, 0xFFFFFF, 255, LWA_COLORKEY);
   return 0;
}


2. Open CE 6.2 trainer IDE. Select default form and set name as "CETrainer"

3. Drop the Image-component and Button-component on the form

4. Set some align-options in the Image component (as you wish)

5. Add "*.exe programm" in Resources CE.

6. Write some litle lua code for some recive functions "OnMouseDown" and "OnClick"

Code:
function CEImage1MouseDown(sender, button, x, y)
form_dragNow(CETrainer)
end

function CEButtonExitClick(sender)
 closeCE()
 return caFree
end

form_show(CETrainer)

local fullName = 'c:\\TargetTransparent.exe'
local tablefile = findTableFile('TargetTransparent.exe')
tablefile_saveToFile(tablefile, fullName)
shellExecute(fullName)
sleep(150)
os.remove(fullName)


7. Build CE trainer and we have nice dragging Transparent Trainer

Have a nice day



transparentFormCE62.png
 Description:
Transparent areas
 Filesize:  26.15 KB
 Viewed:  10179 Time(s)

transparentFormCE62.png



ExampleCE 6,2 TrainerTransparentBackGround.CETRAINER
 Description:
Transparent areas .CETRAINER

Download
 Filename:  ExampleCE 6,2 TrainerTransparentBackGround.CETRAINER
 Filesize:  25.04 KB
 Downloaded:  1279 Time(s)

Back to top
View user's profile Send private message
yui0900826
Cheater
Reputation: 0

Joined: 09 Aug 2011
Posts: 35
Location: HongKong

PostPosted: Fri Oct 05, 2012 3:15 am    Post subject: Reply with quote

Thanks Razz Razz Razz Razz Razz


Transparent.JPG
 Description:
 Filesize:  44.11 KB
 Viewed:  10162 Time(s)

Transparent.JPG


Back to top
View user's profile Send private message
S-nonymous027
How do I cheat?
Reputation: 0

Joined: 25 Jul 2021
Posts: 9
Location: Earth

PostPosted: Sun Aug 29, 2021 12:37 am    Post subject: Reply with quote

Doesn't work as of 7.3. The supposedly transparent background is shown as white instead.
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