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 a value from the Editbox and place it in a pointer value

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

Joined: 23 Sep 2014
Posts: 5

PostPosted: Tue Sep 23, 2014 7:31 pm    Post subject: Get a value from the Editbox and place it in a pointer value Reply with quote

I am new to all this Lua scripts with cheat engine and Im trying to assign a value a user types into a editbox to the value of a pointer

My problem is whenever I hit the change value button it just sets the pointer value to 0 no matter what. What its supposed to do is take the value from CEEdit1 and use that as the value for the pointer

Heres the code:
Code:

function CEButton1Click(sender)
openProcess("Fable Anniversary.exe")
showMessage("Fable Anniversary Attached to trainer")
end

function CEButton2Click(sender)
readInteger('[[[[["Fable Anniversary.exe"+3223E00]+c]+2e0]+2a0]+290]+250')
writeInteger('[[[[["Fable Anniversary.exe"+3223E00]+c]+2e0]+2a0]+290]+250',CEEdit1)
end

function CEButton3Click(sender)
closeCE()
return caFree
end

Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Wed Sep 24, 2014 2:54 am    Post subject: Reply with quote

Code:
function CEButton1Click(sender)
openProcess("Fable Anniversary.exe")
showMessage("Fable Anniversary Attached to trainer")
end

function CEButton2Click(sender)
--readInteger('[[[[["Fable Anniversary.exe"+3223E00]+c]+2e0]+2a0]+290]+250') --useless action.. you dont need to read since you dont do anything with the output
writeInteger('[[[[["Fable Anniversary.exe"+3223E00]+c]+2e0]+2a0]+290]+250',UDF1.CEEdit1.Text)
end

function CEButton3Click(sender)
closeCE()
return caFree
end

_________________
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
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