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 


two questions

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

Joined: 08 Oct 2020
Posts: 68

PostPosted: Thu Aug 11, 2022 9:33 am    Post subject: two questions Reply with quote

Hi, sorry for my bad English,
I have two questions:

1. my "trainer" is quite long, over 1500 lines, so I split it using "require" (Lua Function), my problem is: when the "require" file update, let said the x = 1, then update it to x = 2, when I press the "execute script", the x still has a value of 1, so, how to refresh, or un-"require", or whatever it called this thing?

2. is there any way to insert a picture like ms-word, and the text will auto align, or can this software work as docx or pdf reader without an additional addon?

thank you, have a nice day
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: Thu Aug 11, 2022 1:31 pm    Post subject: Reply with quote

1:
package.loaded["requirename"]=nil

2: where do you wish to insert a picture?

_________________
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
kucingkembar
Advanced Cheater
Reputation: 0

Joined: 08 Oct 2020
Posts: 68

PostPosted: Thu Aug 11, 2022 6:59 pm    Post subject: Reply with quote

thank you for the reply Dark Byte,
1. problem solved
2. I usually put the text at "Label", but I like to create a guide for collectible items(using a form that "always on top" controlled by hotkey), it will be nice if it shows like an HTML page or ms-word like
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: Fri Aug 12, 2022 3:10 am    Post subject: Reply with quote

you could combine your table with a .rtf and then shellexecute that to show it (though it's not going to be an always on top window)

what you can also do is create a form and put image controls on there and load them with pictures (click the picture property to set an image)
I myself would recommend a scrollbox and inside there just 1 picture that contains everything. That way the user can scroll and you don't need to deal with DPI differences

_________________
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
kucingkembar
Advanced Cheater
Reputation: 0

Joined: 08 Oct 2020
Posts: 68

PostPosted: Fri Aug 12, 2022 5:25 am    Post subject: Reply with quote

thank again Dark Byte
for RTF i will skip

for "a scrollbox and inside there just 1 picture", that is my first idea, but I like to edit for typo, wrong info, if I wrong I must screen shot everytime I wrong

anyway, can it do as HTML reader?
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: Fri Aug 12, 2022 6:12 pm    Post subject: Reply with quote

html is too complex
but you can write a html page, then print it to a pdf and then convert the pdf to an image

_________________
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
kucingkembar
Advanced Cheater
Reputation: 0

Joined: 08 Oct 2020
Posts: 68

PostPosted: Sun Aug 14, 2022 1:54 am    Post subject: Reply with quote

thank again Dark Byte for the reply, sorry for the late reply,
I think I will use your suggestion to create images, then put them on the form
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Aug 14, 2022 7:16 am    Post subject: Reply with quote

https://ezgif.com/pdf-to-png
_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website 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