View previous topic :: View next topic |
Author |
Message |
Stacktrace Expert Cheater
Reputation: 1
Joined: 04 Jul 2015 Posts: 105
|
Posted: Wed Sep 09, 2015 12:58 pm Post subject: How do I stop a script that uses sleep plus while true do en |
|
|
Hi, I made an exploit that requires me to use the while true do end function plus a few sleep(number)'s.
The problem is, because of the sleep feature Cheat Engine pauses itself meaning I won't be able to use it because it'll just freeze and crash. The script in the background from cheat table is still running fine and everything's working fine. But I need a way to disable this script. Because if I close my game, it'll freeze in my Task Manager and no matter what I do, no programs or anything will be able to close that process. Not even if I close Cheat Engine. So I'd like to know a way I can stop that while true do end script from running? I was thinking maybe a hotkey script would do the job, but then again, how would I stop a running script from a hotkey? as I can't do anything in CE due to it being frozen plus I have to use while true do end in the script otherwise this won't work the way I want it to.
Thanks!
-Tender
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Sep 09, 2015 4:41 pm Post subject: |
|
|
Code: | [ENABLE]
{$lua}
if mytimer == nil then
mytimer=createTimer(nil)
mytimer.Interval=1000
mytimer.OnTimer=function(t)
while true do
sleep(100)
end
end
end
mytimer.Enabled=true
{$asm}
[DISABLE]
{$lua}
mytimer.Enabled=false
{$asm} |
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Sep 09, 2015 4:55 pm Post subject: |
|
|
that script should freeze cheat engine completely
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Sep 09, 2015 6:08 pm Post subject: |
|
|
Duh... his while loop speak threw me off
Code: | [ENABLE]
{$lua}
if mytimer == nil then
mytimer=createTimer(nil)
mytimer.Interval=1000
mytimer.OnTimer=function(t)
--do whatever
end
end
mytimer.Enabled=true
{$asm}
[DISABLE]
{$lua}
mytimer.Enabled=false
{$asm} |
|
|
Back to top |
|
 |
|