|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
The Dab Cheater Reputation: 0
Joined: 22 May 2017 Posts: 33
|
Posted: Mon Jul 17, 2017 4:14 pm Post subject: How to change the value of the score with a edit box? |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Jul 17, 2017 4:33 pm Post subject: Re: How to change the value of the score with a edit box? |
|
|
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 |
|
|
The Dab Cheater Reputation: 0
Joined: 22 May 2017 Posts: 33
|
Posted: Mon Jul 17, 2017 5:02 pm Post subject: Re: How to change the value of the score with a edit box? |
|
|
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 |
|
|
|
|
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
|
|