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 do i print in cheat engine source?

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

Joined: 01 Jul 2017
Posts: 123

PostPosted: Fri Dec 07, 2018 5:38 am    Post subject: how do i print in cheat engine source? Reply with quote

Hello how do i print in cheat engine source?

like in lua -> print('lol')

i tried using writeln and write, it cant, i already checked the semicolon

i see a print function at luahandler
i couldnt figure it out, can u help me?

_________________
<3 Yuki Tanaka
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 194

PostPosted: Fri Dec 07, 2018 3:26 pm    Post subject: Reply with quote

There are unstable options for "print".
Review and run the examples here!

https://forum.cheatengine.org/viewtopic.php?t=568335&view=next&sid=c35459c2669642ec15054b05db967391

my suggestion is to do it with "memo".
Here is an example:

Code:
local form = createForm(true);
form.width = 320;
form.height = 320;
form.position = poScreenCenter

local button = createButton(form)
control_setCaption(button, [[Paste!]])
control_setPosition(button, 104,265)
button.width = 112
button.height = 28

local edit = createEdit(form);
edit.width = 290;
edit.height = 23;
control_setPosition(edit, 15,19)

local edit1 = createEdit(form);
edit1.width = 290;
edit1.height = 23;
control_setPosition(edit1, 15,60)

button.OnClick = function()
form1 = createForm(true);
form1.width = 320;
form1.height = 320;
form1.position = poScreenCenter

local memo = createMemo(form1)
control_setPosition(memo, 9, 9)
memo.width = 304
memo.height = 304
memo.scrollBars = 'ssAutoBoth'
memo.Lines.Text = edit.Text..'\n'..edit1.Text
end

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
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 MSN Messenger
Lynxz Gaming
Expert Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 123

PostPosted: Fri Dec 07, 2018 6:13 pm    Post subject: Reply with quote

but i want to print result from a function in ce souce
_________________
<3 Yuki Tanaka
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 194

PostPosted: Fri Dec 07, 2018 6:25 pm    Post subject: Reply with quote

Lynxz Gaming wrote:
but i want to print result from a function in ce souce


https://forum.cheatengine.org/viewtopic.php?t=593483

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
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 MSN Messenger
ParkourPenguin
I post too much
Reputation: 66

Joined: 06 Jul 2014
Posts: 2093

PostPosted: Fri Dec 07, 2018 8:52 pm    Post subject: Reply with quote

Use OutputDebugString for debugging purposes.

If you're referring to the Lua engine window, try looking through LuaHandler.pas (GitHub).

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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