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 


i Want to ask some Stupid question () Come here

 
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: Thu Jun 28, 2018 4:18 am    Post subject: i Want to ask some Stupid question () Come here Reply with quote

How to Showing message with double Grouped text
example:
i maked some CEEdit
now
i make some Button
with caption DO NOW!
then if i click Do Now
it will show message on CEEdit like this :
showMessage(UDF1.CEEdit1.Text)
yeah , i know it
but i want is
if CEEdit1.text = Hello
then i clicked Button
he is adding some text automatically likes
Hello Doned
adding Doned Text to behind without getting from CEEdit
Thanks for who helping() Very Happy

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Jun 28, 2018 7:25 am    Post subject: Reply with quote

Not sure this is what you want :

Code:
f = createForm()

e = createEdit(f)
e.left = 10
e.top = 10
e.width = 100
e.height = 30
e.Text = 'Hello'

b = createButton(f)
b.top = 80
b.left = 10
b.width = 100
b.height = 30
b.caption = 'DO NOW'

function shwText()
 if e.Text == 'Hello' then
 showMessage('Hello Done')
 end
end

b.onClick = shwText

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Jun 28, 2018 11:20 am    Post subject: Reply with quote

Working based on Corroders code to actually just append the text to whatever was in the edit box:

Code:
f = createForm()

e = createEdit(f)
e.left = 10
e.top = 10
e.width = 100
e.height = 30
e.Text = 'Hello'

b = createButton(f)
b.top = 80
b.left = 10
b.width = 100
b.height = 30
b.caption = 'DO NOW'

function showText()
  showMessage(e.Text .. ' Done')
end

b.onClick = showText

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Thu Jun 28, 2018 7:25 pm    Post subject: Reply with quote

Thanks so much FreeER ! Corrorder!
Your answer all so useful
Thanks to helping me

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Jun 28, 2018 10:33 pm    Post subject: Reply with quote

or if want to show message :

Code:
function showText()
  txt = e.Text
  showMessage(txt .. ' Done')
end

-- will adding word 'Done', no matter what is "Edit" contains.

_________________
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