Java Counter-Strike Overlay Problem

Posts 112 of 12 · Page 1 of 1
Java Counter-Strike Overlay Problem
Hello everybody so I decided to try and code an overlay in Java for Counter-Strike: GO (Or pretty much any version since its basic).

Screen:
http://postimg.org/image/rfrpae0cv/full/

The problem is that as I move my mouse around the cursor sometimes pops on the screen or if its exactly on the overlay the overlay comes to front.
How do I fix that ? Can I make JFrame unclickable or something ?

Cheers
Quote Originally Posted by maximalista View Post
Hello everybody so I decided to try and code an overlay in Java for Counter-Strike: GO (Or pretty much any version since its basic).

Screen:
http://postimg.org/image/rfrpae0cv/full/

The problem is that as I move my mouse around the cursor sometimes pops on the screen or if its exactly on the overlay the overlay comes to front.
How do I fix that ? Can I make JFrame unclickable or something ?

Cheers
Why are you trying to use Java for Counter-Strike, or any game not written in Java.... That's your problem.
Why not ? For fun ? And that's not the problem....
Quote Originally Posted by maximalista View Post
Why not ? For fun ? And that's not the problem....
Java doesn't have a true method of hooking into games, because it doesn't use Direct3D... So you're basically just overlaying a stand-alone program... I still see your problem of using Java instead of actually writing over the game with D3D with C++.
Use D3D to code the overlay.
Java is bad to use with games that are coded with C++.
You could always hide the mouse when hovering over the overlay.
Code:
// Transparent cursor.
BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);


// Create a new blank cursor.
Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
    cursorImg, new Point(0, 0), "blank cursor");


// Set the blank cursor to the JFrame.
mainJFrame.getContentPane().setCursor(blankCursor);
Quote Originally Posted by argyros View Post
Use D3D to code the overlay.
Java is bad to use with games that are coded with C++.
You could always hide the mouse when hovering over the overlay.
Code:
// Transparent cursor.
BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);


// Create a new blank cursor.
Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
    cursorImg, new Point(0, 0), "blank cursor");


// Set the blank cursor to the JFrame.
mainJFrame.getContentPane().setCursor(blankCursor);
Thank you for siding with me.
I wouldn't say bad. However I found a solution to my problem.
Quote Originally Posted by maximalista View Post
I wouldn't say bad. However I found a solution to my problem.
It is bad.. Why would you not use the easier of 2 options that can actually hook to the game?
What do you mean bad ? If you mean bad as of hard, then that's no problem for me. I've come across plenty of ways to hack with java, there are even plenty of libraries. Using C++ simply because it's easier takes the fun and creativity away, at least for me. And yes if I decide to make something "hardcore" I would use C++, but I never said I am making something "hardcore". I am just fooling around with java and finding alternate ways of doing stuff. Plus it helps get a better understanding of the language itself. And please stop giving me C++ snippets as if I am an idiot, its insulting...
Quote Originally Posted by maximalista View Post
What do you mean bad ? If you mean bad as of hard, then that's no problem for me. I've come across plenty of ways to hack with java, there are even plenty of libraries. Using C++ simply because it's easier takes the fun and creativity away, at least for me. And yes if I decide to make something "hardcore" I would use C++, but I never said I am making something "hardcore". I am just fooling around with java and finding alternate ways of doing stuff. Plus it helps get a better understanding of the language itself. And please stop giving me C++ snippets as if I am an idiot, its insulting...
Snippets? when did anyone ever give you C++ snippets?
Don't see how trying to get Java to overlay with CSGO a good of learning the language as there a lot more and better uses for coding in java.
The only reason why you should use java is because of its oop which clearly making something for csgo doesn't really help with.
If you have nothing productive to say I suggest you stop spamming here, better off if someone closes this thread......
Quote Originally Posted by maximalista View Post
If you have nothing productive to say I suggest you stop spamming here, better off if someone closes this thread......
Productive?
You made a post asking for help, I gave you help and even gave advice on it.
If you didn't want help or didn't want to be criticized then you shouldn't have made this post in the first place.
Posts 112 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?