You mean, like picking a pen and just drawing the ESP by hand directly on my screen?
Originally Posted by Raydenman
Detectable on WHAT?
I still can't understand.
FindWindow is part of user32.dll > win32 api.
Anyway, on .net you need to do a p/invoke for it.
I mean detectable by the game's anti-cheat, e.g. VAC.
And I'm not on .NET, I use C++
Originally Posted by NoDuck
Thanks for the replies
You mean, like picking a pen and just drawing the ESP by hand directly on my screen?
I mean detectable by the game's anti-cheat, e.g. VAC.
And I'm not on .NET, I use C++
That functions have nothing to do with anti-cheat detecting ...
Originally Posted by Raydenman
That functions have nothing to do with anti-cheat detecting ...
But when the anti-cheat detects that my hack draws on top of the game's window, it may find it suspicious and for example make a screenshot or scan my hack.
Originally Posted by NoDuck
But when the anti-cheat detects that my hack draws on top of the game's window, it may find it suspicious and for example make a screenshot or scan my hack.
Can you post the code?
Originally Posted by Raydenman
Can you post the code?
The drawing code is kind of spread throughout my code (I should rework and encapsulate it in a way) but I basically use this:
Code:
HWND hWnd = FindWindow(NULL, "<gameWnd's name>");
HDC hDC = GetDC(hWnd);
HBRUSH hBrush = CreateSolidBrush(RGB(r, g, b));
RECT rect = { x, y, x + w, y + h };
FillRect(hDC, &rect, hBrush);
Originally Posted by NoDuck
You mean, like picking a pen and just drawing the ESP by hand directly on my screen?
Exactly. It's 100% undetectable and will never be.
Originally Posted by NoDuck
The drawing code is kind of spread throughout my code (I should rework and encapsulate it in a way) but I basically use this:
Code:
HWND hWnd = FindWindow(NULL, "<gameWnd's name>");
HDC hDC = GetDC(hWnd);
HBRUSH hBrush = CreateSolidBrush(RGB(r, g, b));
RECT rect = { x, y, x + w, y + h };
FillRect(hDC, &rect, hBrush);
I'm sorry but I don't know how the "Anti-cheat" works.
You need to create a brush using that function, "indispensable".
I can only tell you a precision: when you don't need anymore the object hbrush, call deleteobject which deletes gdi objects.
Originally Posted by Raydenman
I'm sorry but I don't know how the "Anti-cheat" works.
You need to create a brush using that function, "indispensable".
I can only tell you a precision: when you don't need anymore the object hbrush, call deleteobject which deletes gdi objects.
Okay, thanks
Would you recommend me to use GDI or do you know better techniques?
Originally Posted by NoDuck
Okay, thanks
Would you recommend me to use GDI or do you know better techniques?
mmm... I dunno so much "better techniques", but GDI+ is not so much hardware accelerated.
Originally Posted by NoDuck
Okay, thanks
Would you recommend me to use GDI or do you know better techniques?
D3D or opengl or well, whatever else.
Originally Posted by ლ(ಠ_ಠლ)
D3D or opengl or well, whatever else.
Opengl is not even a library, it's a low level drawing api.
It doesn't even support networking, sound, input devices like mouse etc.
And, opengl is equivalent to direct3d; direct3d= an object oriented 3d graphics library.
I would choose OpenGl for non-microsoft platforms.
Originally Posted by Raydenman
Opengl is not even a library, it's a low level drawing api.
It doesn't even support networking, sound, input devices like mouse etc.
And, opengl is equivalent to direct3d; direct3d= an object oriented 3d graphics library.
I would choose OpenGl for non-microsoft platforms.
I think am missing the point of your post. He can of course use both of them and even other APIs to draw ESP on the screen without even thinking about GDI.