View previous topic :: View next topic |
Author |
Message |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Apr 22, 2008 7:43 am Post subject: Showing text on a window that keeps refreshing |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Apr 22, 2008 7:48 am Post subject: |
|
|
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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Apr 22, 2008 7:59 am Post subject: |
|
|
hmm, ill check it out, any specific sites you could think of?
im trying to do this in delphi btw
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Apr 22, 2008 8:47 am Post subject: |
|
|
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 |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Apr 22, 2008 2:01 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Apr 22, 2008 5:24 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Tue Apr 22, 2008 6:13 pm Post subject: |
|
|
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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Apr 22, 2008 8:57 pm Post subject: |
|
|
ahh, ill check that out, though i think this is getting a little complicated for my needs
_________________
|
|
Back to top |
|
 |
|