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 


How make trainer Screen Shot

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

Joined: 24 Dec 2017
Posts: 52

PostPosted: Sat May 12, 2018 1:09 am    Post subject: How make trainer Screen Shot Reply with quote

how make a trainer that if i click button it will Sjow on CEIMAGE
CEIMAGE.Picture = Screen Shot Results
i think the works Is like this
Click button then screen shot then get image from CLIPBOARD

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 355

Joined: 09 May 2003
Posts: 20760
Location: The netherlands

PostPosted: Sat May 12, 2018 1:27 am    Post subject: Reply with quote

example code:
Code:

w=getScreenWidth()
h=getScreenHeight()
sc=getScreenCanvas()
UDF1.CEImage1.Stretch=true
UDF1.CEImage1.Picture.Bitmap.Width=w
UDF1.CEImage1.Picture.Bitmap.Height=h

UDF1.CEImage1.canvas.copyRect(0,0,w,h,sc,0,0,w,h)


_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
MateeJr Gaming
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 52

PostPosted: Sat May 12, 2018 1:40 am    Post subject: Reply with quote

hello darkbyte . why the results like this?


20180512_143917.jpg
 Description:
 Filesize:  86.38 KB
 Viewed:  565 Time(s)

20180512_143917.jpg



_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 355

Joined: 09 May 2003
Posts: 20760
Location: The netherlands

PostPosted: Sat May 12, 2018 2:04 am    Post subject: Reply with quote

probably because the window containing the image is smaller than your screen so it's shown cropped
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
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