![]() |
|
[C] Need Help! Code a crosshair for games - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Need Help! Code a crosshair for games (/showthread.php?tid=4097633) |
Need Help! Code a crosshair for games - zooppa - Mar 5, 2014 I want to make a crosshair, or a small dot in the middle of the screen so it would act like a crosshair.. Im playing this game called Rust, and the bow doesnt have crosshair, so I'd like to make one. I dont want to inject the crosshair to the game, but instead I want it to be like a image or something that is always on top. And ofc, it would be made in C++ Im not very advanced in C++ so please explain easily :D Thanks in advance * - blumerc - Mar 5, 2014 You have 3 options: - Inject a D3D hook and draw the crosshair; - Use GDI or a DirectX Overlay and draw it (will require windowed mode); - Stick something on the center of the screen. * - Сlassy - Mar 5, 2014 (Mar 5, 2014 05:27 AM)RUii Wrote: You have 3 options: OP, if the game has an anticheat, first option may not be the best. Anticheats usually look for injections, even if it's nothing harmful. * - Skyla Blue - Mar 5, 2014 (Mar 5, 2014 05:27 AM)RUii Wrote: You have 3 options: Vouch for option 3. I'm now a cevo pro. * - -ΒMW- - Mar 5, 2014 This is definitely a more expensive option but this: http://www.newegg.com/Product/Product.aspx?Item=N82E16824236313 has a built in crosshair you can add on to anygame but as for the cheaper options i would just go with RUii options lol * - zooppa - Mar 5, 2014 (Mar 5, 2014 05:27 AM)RUii Wrote: You have 3 options: Does option 2 work if I play on windowed with noborders? I think the launch options on steam for that are "-windowed -noborder" if that helps to understand what I mean :P Option 3 would be the easiest :D but I like to code it because having a piece of tape on my screen feels too cheap :P * - blumerc - Mar 5, 2014 (Mar 5, 2014 06:46 AM)zooppa Wrote: Does option 2 work if I play on windowed with noborders? I think the launch options on steam for that are "-windowed -noborder" if that helps to understand what I mean :P Yes, works with windowed + noborder, you can even make it fit your entire screen. The reason why it must be in windowed mode is because you will need to get the game's window Handle. |