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 


What methods exist to read a value only once with a timer?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Razi
Expert Cheater
Reputation: 1

Joined: 17 Jan 2018
Posts: 205

PostPosted: Tue Nov 05, 2019 8:46 am    Post subject: What methods exist to read a value only once with a timer? Reply with quote

1) What methods exist to read a value only once with a timer? Can this be done only with a variable or are there other methods?
2) What methods exist to read value, only the first 10 seconds with a timer?
For example: I want to read the value only once, each time the value becomes equal to 0x202.
Code:
if readInteger(0x009A1257) == 0x202 then
UDF1.CEEdit1.Text = readInteger(0x009C5495) -- read the value only once or first 10 seconds
end


3) Is there any other way to construct the code besides: UDF1['CEComboBox'..238+x].Top ?
example:
Code:
for x = 0, 3 do
UDF1['CEComboBox'..238+x].Top = 50 + x*24
end
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