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 


Need help to automate a tedious task.

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

Joined: 20 Jan 2019
Posts: 1

PostPosted: Sun Jan 20, 2019 9:56 am    Post subject: Need help to automate a tedious task. Reply with quote

hello,

i need help to automate a series of tasks using lua for cheat engine.

the task sequence is as follows:

1) open a process (a game)
2) search a known byte value in memory. ( hexadecimal representation of float between 0 and 1 )
3)store all addresses that contain that specific byte value. The address are needed, since the values need to be changed many times as needed.
4) for each address found with the byte values, replace all of them with a new hexadecimal byte value ( a new float value converted to hex) .
5) repeat this process either on pressing a hot key or after a set period of time.


can anyone help to create a lua script that automates this process.

also i could use a function that converts a float value into hexadecimal byte that will be used for replacing.

i already did these processes manually , but it gets tedious to do each time. hence the need to automate it.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Jan 21, 2019 9:49 am    Post subject: Reply with quote

Code:
openProcess(...)
AOBScan(...)
function dowork()
  for _, addr in ipairs(result) do writeFloat(addr, ...) end
end

local t = createTimer()
t.OnTimer = dowork
t.Interval = 1000 -- milliseconds

local h = createHotkey(dowork, {VK_F2})

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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