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 to pass the value of a address in the edit box?

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

Joined: 06 May 2012
Posts: 17

PostPosted: Fri Nov 02, 2012 10:13 am    Post subject: How to pass the value of a address in the edit box? Reply with quote

Hello forum users!


I can not read the values ​​from the address in the edit box.

Code:
readInteger ("01C8FF0", getProperty (CETrainer_CEEdit1))


After this code, I get an error.

How to pass the value of a address in the edit box?

Search in Google does not solve this problem.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Fri Nov 02, 2012 4:37 pm    Post subject: Reply with quote

You need to either use control_setCaption or set the "Text" property of the editfield



try something like this
Code:

setProperty (CETrainer_CEEdit1, "Text", readInteger ("01C8FF0"))

_________________
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
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri Nov 02, 2012 5:43 pm    Post subject: Reply with quote

Great thank you.
Now I can make a teleport hack Smile
(Well i could do it before, but now I can see my coords, so I don't need to guess the value.)


Dark Byte wrote:
You need to either use control_setCaption or set the "Text" property of the editfield



try something like this
Code:

setProperty (CETrainer_CEEdit1, "Text", readInteger ("01C8FF0"))


But wait, if I want it to read it constantly?
Like If I change the address, it won't change (only if I press on Execute again).

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
GradenT
Newbie cheater
Reputation: 0

Joined: 06 May 2012
Posts: 17

PostPosted: Fri Nov 02, 2012 8:58 pm    Post subject: Reply with quote

Before you go into the topic, I found a method that solves this problem.

Code:
local value=readInteger("01C8FF0")
control_setCaption(CETrainer_CEEdit1, value)


Dark Byte, thanks for answering my questions.

I think that your way is easier and better.


P \ s. Nevertheless, I will use Your algorithm, as it is more consistent.



DaSpamer wrote:
Great thank you.
Now I can make a teleport hack Smile
(Well i could do it before, but now I can see my coords, so I don't need to guess the value.)


Dark Byte wrote:
You need to either use control_setCaption or set the "Text" property of the editfield



try something like this
Code:

setProperty (CETrainer_CEEdit1, "Text", readInteger ("01C8FF0"))


But wait, if I want it to read it constantly?
Like If I change the address, it won't change (only if I press on Execute again).



Set the timer for this function.
How to set the timer can not say, because this step has not yet passed.
But in this section of the forum, there are many topics on this topic.
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