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 


[?]Display text in front of full screen game

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

Joined: 12 Sep 2008
Posts: 84
Location: Not Having Fun

PostPosted: Sun Aug 16, 2009 10:26 pm    Post subject: [?]Display text in front of full screen game Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Aug 16, 2009 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Aug 16, 2009 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Mon Aug 17, 2009 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Aug 17, 2009 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Aug 17, 2009 4:31 pm    Post subject: Reply with quote

TextOut
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Aug 17, 2009 7:10 pm    Post subject: Reply with quote

void:] wrote:
TextOut


TextOut after the drawing has been done *

_________________
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