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 


Get Value From Editbox (Error)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Csibike4
How do I cheat?
Reputation: 0

Joined: 05 Jun 2020
Posts: 6

PostPosted: Fri Jun 05, 2020 2:52 pm    Post subject: Get Value From Editbox (Error) Reply with quote

Hello,
I want to get value from the edit box to memory.

Code:
getAddressList().getMemoryRecordByDescription('Apply_Rating').Active = sender.checked
writeInteger('rating_value_adress',UDF1.Squad_Rating.text)


checkbox name: Apply_Rating
The address where I want to store the value of the edit box: rating_value_adress
Edit box name: Squad_Rating

I think the problem is the second parameter of write integer function. IDK what is "UDF1", I found this example. I tried CETrainer.Squad_Rating.Text also. CETrainer is my trainer name.



Problem.png
 Description:
The fitness change function is working properly, I do not call this function on this case. In this case I will call: CETrainer_Apply_RatingChange function. I can't imagine that how the fitness change function can cause error.
 Filesize:  7.86 KB
 Viewed:  1020 Time(s)

Problem.png


Back to top
View user's profile Send private message
Razi
Expert Cheater
Reputation: 1

Joined: 17 Jan 2018
Posts: 202

PostPosted: Sat Jun 06, 2020 3:35 am    Post subject: Reply with quote

UDF1 is the name of the form created by default in the Cheat Engine (Table --> Create form)
try:
Code:
writeInteger(rating_value_adress, CETrainer.Squad_Rating.Text)
Back to top
View user's profile Send private message
Csibike4
How do I cheat?
Reputation: 0

Joined: 05 Jun 2020
Posts: 6

PostPosted: Sat Jun 06, 2020 7:36 am    Post subject: Reply with quote

Razi wrote:
UDF1 is the name of the form created by default in the Cheat Engine (Table --> Create form)
try:
Code:
writeInteger(rating_value_adress, CETrainer.Squad_Rating.Text)

Thank you for helping, it seems now working.
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