views:

169

answers:

2

Hello!

I wonder what techniques xfire and/or Steam uses to overlay into games. I'm trying to do something similar and I really would like to know what is the least intrusive way, I.e. won't alert any anti-cheat systems. I don't need any kind of information from the game (no wall-hack BS). I would basically just like to display a rectangle with custom contents in the game.

PS. I have seen some examples by googling but most of them seem very old. Are they still good options?

+1  A: 

Well as I haven't saw the examples I can't tell they're good for use.

I think I won't give you solution but maybe I point you right direction. You are probably using windows as a platform and every window is having it's handle. So if you could obtain this handle maybe you could draw directly into game.

How to obtain handle

You should now be able to act, as if your program is the game itself. However I didn't try this and it may lead you to number of problems.

The other way if you want to just draw stuff is just take as an example something that is doing similliar things. What about FRAPS or other FPS measuring utilities. They are all drawing FPS number on your screen. It should be good idea to look on open source apps out there and find any which does in it part what you need. It will be then just a bit of breaking down the code.

Raven
+2  A: 

A few days back, I had asked this question. This might help you too. Read Alan's reply and the links he's mentioned : How to overlay graphics on Windows games?

sauparna