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 


[C#] Implementing Speedhack

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

Joined: 15 Jun 2008
Posts: 429

PostPosted: Sun Feb 14, 2016 1:44 pm    Post subject: [C#] Implementing Speedhack Reply with quote

What's the best way to go about doing this? I've been looking at the speedhack source, is there any way to call the code from my program or will I have to implement it all myself? The latter is doable but more work, obviously.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Feb 14, 2016 5:30 pm    Post subject: Reply with quote

The Cheat Engine speedhack dll(s) export their functionality which CE uses.
You can make use of it in the same manner.

The main export is 'InitializeSpeedhack' from the DLL files.

You can view the usage of the dll here:
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/speedhack/speedhackmain.pas
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/speedhack2.pas

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Mon Feb 15, 2016 11:03 am    Post subject: Re: [C#] Implementing Speedhack Reply with quote

asciicat wrote:
What's the best way to go about doing this? I've been looking at the speedhack source, is there any way to call the code from my program or will I have to implement it all myself? The latter is doable but more work, obviously.


Basically, hook QueryPerformanceCounter, GetTickCount and other functions if you want to make something even better than CE speedhack (ex: Sleep, msvcrt.ftime64)

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
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