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 


Showing text on a window that keeps refreshing

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

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Apr 22, 2008 7:43 am    Post subject: Showing text on a window that keeps refreshing Reply with quote

how do i show text on (or over) a window that keeps refreshing itself, so i cant use TextOut, because it keeps disappearing, any ideas

i could move a form over the window, but it would then be active, and would minimize the program

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Apr 22, 2008 7:48 am    Post subject: Reply with quote

Hook the rendering engine the game is using and draw text with it. There are tutorials around the net for doing this with OpenGL and DirectX.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Apr 22, 2008 7:59 am    Post subject: Reply with quote

hmm, ill check it out, any specific sites you could think of?

im trying to do this in delphi btw

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Apr 22, 2008 8:47 am    Post subject: Reply with quote

I suggest ditching Delphi and move into C/C++

As for sites, I would highly recommend www.gamedeception.net for this.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Apr 22, 2008 2:01 pm    Post subject: Reply with quote

I believe for this you would want to inject code after the drawing begins. If you read a tut on directX they will explain this point. I forget the actual code terms and source for it but just google directx tutorial.

You inject your textout or w/e you are using to this point so that each time it renders, it renders your text.

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Apr 22, 2008 5:24 pm    Post subject: Reply with quote

For DirectX you hook the device creation and overtake the device pointer and wrap the interface. Then you can alter the BeginScene() and EndScene() calls to draw your own stuff to the screen and so on.

Easist to call inside EndScene, just be sure to call your stuff before actually calling EndScene(), for example:

Code:
HRESULT DirectXWrapper::EndScene()
{
    // Add your drawing code above this...
    return Direct3DDevice->EndScene();
}

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Apr 22, 2008 6:13 pm    Post subject: Reply with quote

If it's for directX you could look at the CE source, it comes with a directx hook you can use.
It even has a few examples of showing your own textures and fonts in the targeted game

_________________
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
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Apr 22, 2008 8:57 pm    Post subject: Reply with quote

ahh, ill check that out, though i think this is getting a little complicated for my needs
_________________
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