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 


Edit value with lua

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

Joined: 20 Aug 2016
Posts: 44

PostPosted: Wed Jan 18, 2017 11:40 pm    Post subject: Edit value with lua Reply with quote

I've been trying to make an edit box to see the actual value and be able to edit it if you need to, but the value just doesn't change nor show the actual value.
i(dot)imgur(dot)com/a7Tf0eV.png

This is the script I'm using, but it just doesn't work and it should, I don't see anything wrong.

Code:
function CEButton21Click(sender)
  readInteger('[[[[[HelloNeighborReborn-Win64-Shipping.exe"+027964F0]+7A0]+E8]+5A0]+390]+290')
  writeInteger('[[[[[HelloNeighborReborn-Win64-Shipping.exe"+027964F0]+7A0]+E8]+5A0]+390]+290',CETrainer2.CEEdit1.Text)
end
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Jan 19, 2017 4:26 am    Post subject: Reply with quote

Code:
CETrainer2.CEEdit1.Text = writeInteger('[[[[[HelloNeighborReborn-Win64-Shipping.exe"+027964F0]+7A0]+E8]+5A0]+390]+290'
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 Jan 19, 2017 4:54 am    Post subject: Reply with quote

i really recommend memrec.Value=CETrainer2.CEEdit1.Text

anyhow, you are missing the first " of the modulename

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

Joined: 20 Aug 2016
Posts: 44

PostPosted: Thu Jan 19, 2017 8:21 am    Post subject: Reply with quote

And how would that script work? Do you have any example with "memrec.Value"?
Because with the " I forgot, still isn't working.
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 Jan 19, 2017 8:44 am    Post subject: Reply with quote

Code:

getAddressList().getMemoryRecordByDescription('Entry that has the pointer I wish to set the value of').Value=CETrainer2.CEEdit1.Text

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

Joined: 20 Aug 2016
Posts: 44

PostPosted: Thu Jan 19, 2017 9:33 am    Post subject: Reply with quote

Dark Byte wrote:
Code:

getAddressList().getMemoryRecordByDescription('Entry that has the pointer I wish to set the value of').Value=CETrainer2.CEEdit1.Text

Ok, but to make it so everytime the value changes will change in the edit box too? I need a timer?
The value to edit is the 'x' axis, so, the value will be changing constantly and I want it to be able to change to the number you want, but you'll need to know the actual number.
Back to top
View user's profile Send private message
Greenhouse
Cheater
Reputation: 0

Joined: 20 Aug 2016
Posts: 44

PostPosted: Sun Jan 22, 2017 8:58 pm    Post subject: Reply with quote

Nevermind, I already made it. Thanks anyways.
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