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 change the value of the score 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
The Dab
Newbie cheater
Reputation: 0

Joined: 22 May 2017
Posts: 19

PostPosted: Mon Jul 17, 2017 4:14 pm    Post subject: How to change the value of the score with a edit box? Reply with quote

I am trying to make it so when I enter the value in the edit box and press a button it will change the of health. I tried the code below but nothing is happening when I press the button, any idea why?

Code:

function CEButton1Click(sender)
writeInteger("HackTest.exe+1D090", getProperty(CETrainer_CEEdit1,"Test"))
end

form_show(CETrainer)
strings_add(getAutoAttachList(), "HackTest.exe")
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4173
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Jul 17, 2017 4:33 pm    Post subject: Re: How to change the value of the score with a edit box? Reply with quote

The Dab wrote:
I am trying to make it so when I enter the value in the edit box and press a button it will change the of health. I tried the code below but nothing is happening when I press the button, any idea why?

Code:

function CEButton1Click(sender)
writeInteger("HackTest.exe+1D090", getProperty(CETrainer_CEEdit1,"Test"))
end

form_show(CETrainer)
strings_add(getAutoAttachList(), "HackTest.exe")

Edit control doesn't have Test property. You probably wanted "Text" property. Also, stop using old syntax.


Code:
function CEButton1Click(sender)
  writeInteger("HackTest.exe+1D090", tonumber(CETrainer.CEEdit1.Text))
end

CETrainer.show()
getAutoAttachList().add("HackTest.exe")

_________________
Back to top
View user's profile Send private message MSN Messenger
The Dab
Newbie cheater
Reputation: 0

Joined: 22 May 2017
Posts: 19

PostPosted: Mon Jul 17, 2017 5:02 pm    Post subject: Re: How to change the value of the score with a edit box? Reply with quote

mgr.inz.Player wrote:
The Dab wrote:
I am trying to make it so when I enter the value in the edit box and press a button it will change the of health. I tried the code below but nothing is happening when I press the button, any idea why?

Code:

function CEButton1Click(sender)
writeInteger("HackTest.exe+1D090", getProperty(CETrainer_CEEdit1,"Test"))
end

form_show(CETrainer)
strings_add(getAutoAttachList(), "HackTest.exe")

Edit control doesn't have Test property. You probably wanted "Text" property. Also, stop using old syntax.


Code:
function CEButton1Click(sender)
  writeInteger("HackTest.exe+1D090", tonumber(CETrainer.CEEdit1.Text))
end

CETrainer.show()
getAutoAttachList().add("HackTest.exe")


Sorry, the "test" thing was just a typo when copying over to the forums. Secondly I am still having the same problem, the edit-box text still will not transfer into the value. Yes I checked the names by the way, they all match up. Any other suggestions?
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