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 to save files from CEImage or CEMemo to table

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Sun Jun 16, 2019 2:49 pm    Post subject: how to save files from CEImage or CEMemo to table Reply with quote

how can i save files to table from CEImage like the image inside of the CEImage1 to table i couldnt find in documentation
_________________
hi
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Jun 16, 2019 8:30 pm    Post subject: Reply with quote

Not really understand what you want,

Quote:
save files to table from CEImage like the image inside of the CEImage1 to table


Save file to table, what is table mean?. Hack Table?. Lua Table? Table File?. Array Table?, etc

So, I assumed CEImage already made and has a picture on his client. But this is just for example how to create Table File.

Code:
f = createForm()
p = createImage(f)
p.stretch = true
m = createMemo(f)
m.Top = 100
m.Lines.Add('Hello Cheat Engine')

--- to save image to table file
s = findTableFile('mypic.jpg')
if not s then
pic = createTableFile('mypic.jpg', [[E:\mountain.jpg]])
else
p.Picture.loadFromStream(findTableFile('mypic.jpg').Stream)
end

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

Joined: 02 Sep 2018
Posts: 101

PostPosted: Mon Jun 17, 2019 6:29 am    Post subject: Reply with quote

i mean to the .ct file or to normal files but i need to get the picture from CEImage1 not load image to CEImage i need to save the image inside of CEImage1
_________________
hi
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Jun 17, 2019 7:04 am    Post subject: Reply with quote

save the image from UDF1.CEImage1 to file.

Code:
pic = UDF1.CEImage1.Picture
pic.saveToFile('E:/myimage.jpg')  -- change path and name here

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