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 


Pictures lua question

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

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jun 18, 2016 12:46 pm    Post subject: Pictures lua question Reply with quote

Hi
I know Dark Byte answer to my question.
But,I want your help for making lua script for the front of the text : "--and do other things with p like assigning p to a image.Picture or something"

My problem is show images(picture) on form in this lua script :

Code:
if frmCheat.ldCheat.execute() then
  local p=createPicture()
  p.loadFromFile(frmCheat.ldCheat.FileName)
  frmCheat.ClientWidth=p.Bitmap.Width
  frmCheat.ClientHeight=p.Bitmap.Height

  --and do other things with p like assigning p to a image.Picture or something
end
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Jul 04, 2016 3:37 am    Post subject: Reply with quote

Embarassed Very Happy Rolling Eyes
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Jul 04, 2016 5:09 am    Post subject: Reply with quote

frmCheat.myimageobjectthatspansthewholeclientregion.Picture=p
_________________
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
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Jul 04, 2016 7:21 am    Post subject: Reply with quote

This script make this error:

Error:[string "function btnLaunchClick(sender)..."]:8: attempt to index field 'myimageobjectthatspansthewholeclientregion' (a nil value)
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Mon Jul 04, 2016 7:27 am    Post subject: Reply with quote

DarkByte was providing some tongue in cheek humor there. you need to provide your own obj of immense size to the instruction he provided to make it work. frmCheat.***.Picture=p where *** is an object you have created.
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Jul 04, 2016 8:09 am    Post subject: Reply with quote

Can you explain more about ***(frmCheat.***.Picture=p) for me.
How can i write that object is an i have created?
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