if 'Genshin Impact'=='Online multiplayer game' then
showMessage('Cheat Engine; It does not support online multiplayer game hacking. Please conclude the topic.')
else
--Here is the code you need; You can attribute this to a timer.
Code:
function ProcessCheck()
local pdn=('GenshinImpact.exe')
op=openProcess(pdn)
if (op==nil) then
showMessage("GenshinImpact not found!");
closeCE()
return caFree
else
openProcess(pdn)
local pd=getOpenedProcessID()
showMessage("Game: "..pdn.." - PID: "..tonumber(pd))
end
end
if tCheck then tCheck.destroy() end
tCheck=createTimer()
tCheck.Interval=5000 --5 sec
tCheck.Enabled=true
tCheck.OnTimer=function()
--DB code
if not OpenProcess('GenshinImpact.exe') then
showMessage("The game is not open. Trainer shuts down.")
sleep(300)
closeCE() end
--or ProcessCheck code
--ProcessCheck()
end
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