View previous topic :: View next topic |
Author |
Message |
Deltron Z Expert Cheater Reputation: 1
Joined: 14 Jun 2009 Posts: 164
|
Posted: Sat Aug 07, 2010 2:25 pm Post subject: Quick Question |
|
|
I want to create a trainer that instead of a window, it draws itself to the game's window.
So I've hooked EndPaint so my drawings are last and finally called the original EndPaint, but for some reason it doesn't seem to work. all I did was a simple TextOut which appeared like once or twice in all of my tries.
Perhaps I need to perform the drawings elsewhere?
Thanks.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Sat Aug 07, 2010 5:08 pm Post subject: |
|
|
Does the game use a specific rendering engine? For example:
- Direct3D
- OpenGL
If so, you could hook those instead and render using them.
You will get much better performance doing it that way.
_________________
- Retired. |
|
Back to top |
|
|
Deltron Z Expert Cheater Reputation: 1
Joined: 14 Jun 2009 Posts: 164
|
Posted: Sat Aug 07, 2010 6:21 pm Post subject: |
|
|
I thought of that, because it uses Allegro... but I found nothing, not even calls to UpdateWindow/RedrawWindow. The library has a function update_display but I don't know how refreshes the screen, probably WM_PAINT message?
It also doesn't use any Sleep which might give me a hint where to look for the update function, nor GetTickCount/timeGetTime or CRT time/clock, which it imports as-well...
Anyway, I think I'd just choose another game, I'm only doing this to study, not to accomplish anything specific.
Should I still use the EndPaint hook or shall I use some other method?
Thanks.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
|
Back to top |
|
|
Deltron Z Expert Cheater Reputation: 1
Joined: 14 Jun 2009 Posts: 164
|
Posted: Sat Aug 07, 2010 7:33 pm Post subject: |
|
|
I'll choose another game, I guess. thanks for the help, though...
|
|
Back to top |
|
|
|