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 


Properly Disabling (allready enabled) Timer In Delphi

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Mon Jul 02, 2007 4:52 am    Post subject: Properly Disabling (allready enabled) Timer In Delphi Reply with quote

People, do you know and can you tell me a proper way to disable a timer? I'll make ASM script and it will be easy. But how to disable it properly?

This Anticheat has been made in Delphi ... if that helps you.

Any ideas are appreciated.

(refresh if you can't see the image)



how to properly disable the timer.JPG
 Description:
 Filesize:  137.98 KB
 Viewed:  3528 Time(s)

how to properly disable the timer.JPG



_________________

Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Wed Jul 04, 2007 4:26 am    Post subject: Reply with quote

Timer1.Enabled := False?
_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Wed Jul 04, 2007 5:52 am    Post subject: Reply with quote

I assume you're talking about shutting it down in another application. You should be able to do it through SendMessage() (I'm relatively positive you can control timers through SendMessage) and FindWindowEx to get the timer itself (again, not POSITIVE if you're able to as Timers aren't really windows) - OR - You can check out how Delphi points to it's pointers according to it's name (few simple tests), then scan for the string in the file, find the pointer to it's Enabled quiality, and set the byte to 0.
_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Jul 04, 2007 9:56 am    Post subject: Reply with quote

1. Hook SetTimer and get the Timer ID
2. KillTimer

Uzeil is right. If the author of the application chose not to use a TimerProc but to handle it in the main message loop you can send a WM_TIMER message. If s/he chose a TimerProc, you're screwed.
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 programming 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