| View previous topic :: View next topic |
| Author |
Message |
hyphen Advanced Cheater
Reputation: 0
Joined: 12 Sep 2008 Posts: 84 Location: Not Having Fun
|
Posted: Sun Aug 16, 2009 10:26 pm Post subject: [?]Display text in front of full screen game |
|
|
Hello out there I was wondering how programs (like say Fraps) can display variables/strings (like say your FPS) on top of full screen games (without making the game subsequently minimize).
Can it be done with dialog? And if so maybe a few hints on how that would work mmmm?
What I am trying to do is display my coords in the corner of my screen for a fullscreen 3D game. I can read the coords, and output them to a text file or whatever, but my win32 GUI knowledge is extremely basic so I have no idea how get anything to show up on top of the game.
All help/tips are appreciated~
p.s. C++ is all I know/understand
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 16, 2009 10:28 pm Post subject: |
|
|
You could use DirectDraw to overlay the coordinates onto the screen. Here's a DirectDraw Overlay Library
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 16, 2009 11:29 pm Post subject: |
|
|
You'll probably find that overlays are:
1. Finicky with driver support. ATI supports RGB, Nvidia doesn't, you have to convert to YUV.
2. Crappy and likely don't work over most full screen applications anyway.
3. A pain in the ass because directdraw is shitty.
You're probably better off just using the games own renderer.
|
|
| Back to top |
|
 |
Polynomial Grandmaster Cheater
Reputation: 5
Joined: 17 Feb 2008 Posts: 524 Location: Inside the Intel CET shadow stack
|
Posted: Mon Aug 17, 2009 6:18 am Post subject: |
|
|
slovach - I'm interested as to how one would go about using the game's own renderer to do this... care to post a sample?
_________________
It's not fun unless every exploit mitigation is enabled.
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Aug 17, 2009 9:10 am Post subject: |
|
|
You can do a couple things really, you can use in-game functions to display menus, etc.
You can inject your own drawing code and just jump to it when the game is done doing its own. This is pretty straightforward.
But ultimately, the smartest way is likely hooking the renderer and you can go apeshit with DX fun after. There's an article on gamedev about this.
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Mon Aug 17, 2009 4:31 pm Post subject: |
|
|
| TextOut
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Aug 17, 2009 7:10 pm Post subject: |
|
|
TextOut after the drawing has been done *
_________________
|
|
| Back to top |
|
 |
|