Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 11:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Draw Circle on Mouseclick

Discussion on Draw Circle on Mouseclick within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2013
Posts: 3
Received Thanks: 0
Draw Circle on Mouseclick

Greetings everyone,

i catch the Frontbuffer using a custom DLL i inject into a 3D application

(LoL and SC2 in my example)

it works pretty fine.

Now to my question:

I tried to draw a circle on mouseclick using Primitives but even if it getz displayed it doesnt follow

the object i clicked on (e.g. units)

Any idea how to get it stick to the clicked object?
TheOriginalDarklord is offline  
Old 02/06/2015, 23:08   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You need to read the position of the object and calculate the position of the 3d model on your 2d screen. After that simply redraw the circle everytime but don't forget to clear the buffer before you draw, otherwise it'll fill the screen.
alpines is offline  
Thanks
1 User
Old 02/07/2015, 17:24   #3
 
elite*gold: 0
Join Date: Nov 2013
Posts: 3
Received Thanks: 0
Figured that much my problem was that basicly had to click the object again

every time the circle needs to be drawn it wasn`t following the object. It was

just sitting there at the position the object was before. Basicly

my problem atm is that i am unable to get position of the Object after it

moved unless i do it manually every frame despite having it classified (so my

program knows what it is and how it lookz like).

Going to look through my Code again maybe i missed something even though

nothing came up after debugging.

Thx for replying ill post the solution if i can get it done.
TheOriginalDarklord is offline  
Old 02/10/2015, 08:19   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 38
Received Thanks: 2
go in vb(visual basic)
and see you will do
palani3 is offline  
Reply

Tags
lol c++ graphics


Similar Threads Similar Threads
MouseClick bei LC?
02/26/2012 - Last Chaos - 10 Replies
moin ihr alle :D Ich wollte mal probieren an LC mausklicks zu simulieren, aber LC filtert anscheinend simulierte klicks von echten... Kann man das ungehen? ED
Circle Scatter or Circle Right-Clicker
08/14/2010 - CO2 Bots & Macros - 14 Replies
K, I made this simple Macro with Macro Express 3 and I'm pretty sure you can't use it without Macro Express, so if you don't have it you should look at this topic: http://www.elitepvpers.com/forum/co2-guides-templat es/77264-macro-express.html It basically just right clicks in a circle around you, nothing all that new, the reason I made this was because I couldn't find one that stood still and right clicked, that worked on another screen other than and continuously went. It might even work a...



All times are GMT +1. The time now is 11:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.