DirectX Drawing

Posts 1–6 of 6 · Page 1 of 1
DirectX Drawing
Hey, ( Excuse my Name on here )

So for the past 6 - 7 months I've been learning myself how to code the different kind of features for CSGO, and all of that is great, however I wanted to take it a step further and see the possibilities by using DirectX, now I have no experience with DirectX which also makes this a rather 'stupid' choice, but as with everything else I'm very eager to learn how it works exactly and how I can use it for CSGO.

I followed this tutorial: Viking911's tutorial ( I would post a link, but I'm not allowed )
and downloaded / adapated the Grab External Overlay to my solution, and every works almost, in the tutorial viking911 at one point uses ( DrawLine(GetSystemMetrics(SM_CXSCREEN) / 2, GetSystemMetrics(SM_CYSCREEN), W2SP[0], W2SP[1], blablabla your colors..); )

Which of course is pseudo code, however there was no DrawLine function with Grab's External Overlay, so I decided to start diggin around I chose just to write a box instead to see if I could draw at all, since for the time being drawing a line isn't my 'main objective'.

I've come to a point where I draw the box, but I also end up in a draw battle?, between CSGO and my Program.

I were going to post a GIF, but I'm not allowed to. Basically it flikers black and then csgo and black and then csgo, and of course my little tiny box.

Hopefully someone wouldn't mind giving me 'helping' or 'pointing' me in the right direction, and before you start posting "You shouldn't do this if you can't do basic blabla", I want to do this, and I am asking for a reason so just drop the negative or douche comments, there is no reason for them... lets me civil and friendly
Is CSGO in borderless windowed or windowed, if not thats probably it
Quote Originally Posted by VzSKILLZ View Post
Is CSGO in borderless windowed or windowed, if not thats probably it
Oh well,

The whole flickering process does indeed disappear when I go Fullscreen, however the Box that I drew only appears when I alt tab into the game, otherwise it remains invisible. Any Ideas?

Best Regards,
Topic Creator ( My name is too poor for regards )
Quote Originally Posted by Aegisreaper View Post
Oh well,

The whole flickering process does indeed disappear when I go Fullscreen, however the Box that I drew only appears when I alt tab into the game, otherwise it remains invisible. Any Ideas?

Best Regards,
Topic Creator ( My name is too poor for regards )
You need to set the Windows Form to be Top Most, other wise it will be drawn behind the csgo window.
If you are drawing externally, over the top of csgo, there should be no clashing between csgo and your window
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us