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 


Kill all timers script to prevetn CE from hanging

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 340

PostPosted: Tue Jul 30, 2019 3:39 pm    Post subject: Kill all timers script to prevetn CE from hanging Reply with quote

Anyway to kill ALL damn timers fucking thing just enabled a script itself when i opened it and it started poping non stop messages about error causing me to loose all my recent work .
_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 88

Joined: 06 Jul 2014
Posts: 2842

PostPosted: Tue Jul 30, 2019 3:54 pm    Post subject: Reply with quote

Hook timer creation and make that functionality yourself.

e.g. this code I wrote a while ago stops a timer on an error (haven't tested this recently; caveat emptor):
Code:
createTimer_old = createTimer_old or createTimer

timer_hook_mt = {
  __index = function(self, k)
    return self.rawtimer[k]
  end,
  __newindex = function(self, k, v)
    if string.lower(k) == 'ontimer' then
      self.rawtimer.OnTimer = function(...)
        local success, msg = pcall(v, ...)
        if not success then
          self.rawtimer.Enabled = false
          error(msg)
        end
      end
    else
      self.rawtimer[k] = v
    end
  end,
}

createTimer = function(...)
  return setmetatable({ rawtimer = createTimer_old(...) }, timer_hook_mt)
end

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Tue Jul 30, 2019 4:07 pm    Post subject: This post has 1 review(s) Reply with quote

plus having an automatic backup script can help, though it's not a bad feature/extension request.
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 340

PostPosted: Wed Jul 31, 2019 12:33 am    Post subject: Reply with quote

thank you both of you!
You are the people who help others and more shall be like you!

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 385

Joined: 09 May 2003
Posts: 23240
Location: The netherlands

PostPosted: Wed Jul 31, 2019 12:51 am    Post subject: Reply with quote

if you mean it was printing text on the screen making it impossible to click anywhere then just turn of show on print in the lua engine window
_________________
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
View user's profile Send private message MSN Messenger
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 340

PostPosted: Fri Aug 02, 2019 1:54 am    Post subject: Reply with quote

Dark Byte wrote:
if you mean it was printing text on the screen making it impossible to click anywhere then just turn of show on print in the lua engine window


ahh that will do it Smile Thank you

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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