| View previous topic :: View next topic |
| Author |
Message |
BadCake How do I cheat?
Reputation: 0
Joined: 08 May 2023 Posts: 9
|
Posted: Tue May 05, 2026 9:34 am Post subject: Auto Closing Cheat Engine- Want |
|
|
How can I make cheat engine close itself after a certain amount of time and/or if the game I used it on are closed? Wuthering waves, for example will close itself if i left cheat engine opened. I now usually use cheat engine only for speed hack for Stoneshard. An auto close "setting" would be great if I accidently left CE open when I wanted to play WuWa.
So, what should I do? if you told me to "create this and that", my next question is probably "how" so, exact instruction is greatly appreciated.
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3384
|
Posted: Tue May 05, 2026 11:26 am Post subject: |
|
|
I would start a timer (say, 3/s) to detect when the process is gone.
When the process is gone, I would start another timer (say, 2s).
When this second timer fires, I'd call terminate().
This was close CE in 2-5 secs after process termination.
|
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1576
|
Posted: Tue May 05, 2026 2:17 pm Post subject: |
|
|
Replace "Notopad.exe" with your application's executable name in the code, save the code to a ".lua" file, and place it in the CE>autorun folder.
Then, open CE first, and then the application to test it.
| Code: | if clsTmr then clsTmr.Destroy() clsTmr=nil end
clsTmr = createTimer()
clsTmr.Interval = 10
clsTmr.Enabled = false
clsApp = "notepad.exe"
clsTmr.OnTimer=function()
if getProcessIDFromProcessName(clsApp) then
--print("CE closed!")
closeCE()
return cafree
end
end
clsTmr.Enabled = true |
_________________
|
|
| Back to top |
|
 |
BadCake How do I cheat?
Reputation: 0
Joined: 08 May 2023 Posts: 9
|
Posted: Tue May 05, 2026 5:42 pm Post subject: |
|
|
| AylinCE wrote: | Replace "Notopad.exe" with your application's executable name in the code, save the code to a ".lua" file, and place it in the CE>autorun folder.
Then, open CE first, and then the application to test it.
| Code: | if clsTmr then clsTmr.Destroy() clsTmr=nil end
clsTmr = createTimer()
clsTmr.Interval = 10
clsTmr.Enabled = false
clsApp = "notepad.exe"
clsTmr.OnTimer=function()
if getProcessIDFromProcessName(clsApp) then
--print("CE closed!")
closeCE()
return cafree
end
end
clsTmr.Enabled = true |
|
CE closed almost immediately
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25929 Location: The netherlands
|
Posted: Wed May 06, 2026 4:14 am Post subject: |
|
|
if the 'process' variable is not nil or an empty string and readByte(process) returns nil, close CE
maybe you're able to convert this to lua code
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1576
|
Posted: Wed May 06, 2026 7:36 am Post subject: |
|
|
| BadCake wrote: |
CE closed almost immediately |
If it closed 'immediately' when you opened the target game, that means the code is working as intended. However, if it closes without the game being open, we need to debug the logic.
NOTE:
Please do not send your answers as "vague and uncertain."
Please specify whether the code works, whether it performs the task you intended, and if there are any missing or incorrect details.
_________________
|
|
| Back to top |
|
 |
|