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 


Command Lua for change Value inside a script with a Edit Box

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

Joined: 10 Apr 2015
Posts: 417

PostPosted: Tue Aug 08, 2017 5:02 pm    Post subject: Reply with quote

Same topic ... ???

http://forum.cheatengine.org/viewtopic.php?p=5729932&sid=13ee10b4a5edf49c6b354ca7559392b0

_________________
I can't do it now because I don't know yet and because You knew it before me. There is heaven above the sky.
Back to top
View user's profile Send private message
FIRESKY
How do I cheat?
Reputation: 0

Joined: 01 Mar 2017
Posts: 4

PostPosted: Tue Aug 08, 2017 5:37 pm    Post subject: Reply with quote

I think I was wrong topic for my request,

and I hope this is the right topic, to ask for help,
Hoping someone can guide me to figure out what's wrong.
Back to top
View user's profile Send private message
FIRESKY
How do I cheat?
Reputation: 0

Joined: 01 Mar 2017
Posts: 4

PostPosted: Wed Aug 09, 2017 2:30 am    Post subject: Reply with quote

Nobody knows how to do it?
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 417

PostPosted: Wed Aug 09, 2017 6:19 am    Post subject: Reply with quote

Just a simple sample

Code:

f = createForm()

b = createButton(f)
b.left = 5
b.top = 10
b.width = 100
b.caption = 'Click Me'

e = createEdit(f)
e.left = b.width + 10
e.top = 10
e.width = 50

l = createLabel(f)
l.left = 15
l.top = b.height + 30

b1 = createButton(f)
b1.top = 120
b1.width = 100
b1.left = 5
b1.Caption = 'Restore ORI'


orgVal = 100   -------> original value here
myCheatValue = orgVal
e.Text = tostring(orgVal)  -----> convert value to text
l.Caption = 'Original Value is :    '..e.Text

function chgValue()
 myCheatValue = myCheatValue + 10  ---> or writeInterger(bla..bla..bla)
 e.Text = tostring(myCheatValue) ---> Display changed value on editbox
 l.Caption = 'Original Value has changed to :    '..e.Text
end


function restoreVal()
 orgVal = 100   -------> original value here
 myCheatValue = orgVal   ----> or writeInterger(bla...bla..default value)
 e.Text = tostring(orgVal)  -----> convert value to text
 l.Caption = 'Original Value Restored :    '..e.Text
end

b.onClick = chgValue
b1.onClick = restoreVal

f.show()

_________________
I can't do it now because I don't know yet and because You knew it before me. There is heaven above the sky.
Back to top
View user's profile Send private message
FIRESKY
How do I cheat?
Reputation: 0

Joined: 01 Mar 2017
Posts: 4

PostPosted: Wed Aug 09, 2017 11:36 pm    Post subject: Reply with quote

I found another way to succeed in what I wanted
Thank you anyway to all those who have come out to help me
I thank the cheat engine community

SOLVED!
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