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 


problem autoattaching

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
nvz
Newbie cheater
Reputation: 0

Joined: 02 Jul 2016
Posts: 21

PostPosted: Thu Nov 24, 2016 3:31 pm    Post subject: problem autoattaching Reply with quote

hi, i was testing this code from Zanzer, it's used for autoattaching to a process and quickly inject code trying to avoid that autoAssemble fails.
When i run the script in CE it works, but if i create an executable
it doenst work (it's just en empty exe with a Form). Also it seems the
timer set in the program is slower when is run in CE, but goes faster in
the exe, and also uses more CPU in CE.

Probably some noob mistake.

form_show(UDF1);


function CloseClick()
closeCE()
return caFree
end

UDF1.OnClose = CloseClick

local timer = createTimer(nil, false)
maxtime=0
timer.Interval = 100
timer.OnTimer = function(timer)

maxtime=maxtime+1
if (maxtime==50) then
print("out of time")
timer.Destroy()
end

if readInteger("calc.exe") == nil then
openProcess("calc.exe")
print('try'..maxtime)
else
local init = readInteger("InitVariables+10")
if init == nil then
autoAssemble([[
alloc(InitVariables,2048)
registersymbol(InitVariables)
]])
elseif init == 1 then
print("done")
timer.Destroy()
else -- just to test it (DELETE ME)
autoAssemble([[
InitVariables+10:
dd 1
]])
end
end
end

timer.Enabled = true
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 Gamehacking 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