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 


HELP FOR Saving

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

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sat May 12, 2018 1:59 am    Post subject: HELP FOR Saving Reply with quote

how to save a Ceimage picture results TO BE FORMAT JPEG AND SAVE ON DESKTOP?[/u]
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

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

Code:

UDF1.CEImage1.Picture.SaveToFile([[d:\bla.jpg]])


and replace d:\bla.jpg with the desktop location of the current user . You might want to use a fileopen dialog for that

(Just make sure the filename ends with .jpg so it knows it should save as jpg)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sat May 12, 2018 6:29 am    Post subject: Reply with quote

Thanks you Veryy muchhhhh DARKBYEEEEEE
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun May 13, 2018 6:51 am    Post subject: Reply with quote

How about Using SaveDialog?
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Profound_Darkness
Newbie cheater
Reputation: 0

Joined: 21 May 2015
Posts: 23

PostPosted: Mon May 14, 2018 2:32 pm    Post subject: Reply with quote

I'm using information from 'wiki.cheatengine.org/index.php?title=Lua:Class:SaveDialog' and didn't actually test this. By use I mean I've pretty much lifted the example and changed a couple of things to actually use the SaveClass.

Code:

 local save_dialog = createSaveDialog(self)
 save_dialog.InitalDir = os.getenv('%USERPROFILE%')
 if save_dialog.execute() then
   print(save_dialog.FileName)
 end


You'd replace the 'print' text with most of the bit that saves the image. ie:
Code:

UDF1.CEImage1.Picture.SaveToFile(save_dialog.FileName)
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun May 27, 2018 7:48 pm    Post subject: Reply with quote

Thanks all!
_________________
Hi Lynxz Gaming
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