GH*master Expert Cheater Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Thu Oct 04, 2012 9:19 pm Post subject: Transparent areas in window trainer |
|
|
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
Description: |
|
Filesize: |
26.15 KB |
Viewed: |
10184 Time(s) |
|
Description: |
Transparent areas .CETRAINER |
|
Download |
Filename: |
ExampleCE 6,2 TrainerTransparentBackGround.CETRAINER |
Filesize: |
25.04 KB |
Downloaded: |
1279 Time(s) |
|
|