I am currently trying to make a program that will automatically accept a pop-up queue inside a game client. I have managed to get everything to work the way I want when not inside the client. However, when opening the game client, the robot class that I have used loses its ability to move, press and release the mouse. However, it seems as if it is still analyzing the colors at the pointer locally. That is; not inside the game client.
Here's a codefragment from the app.:
/analyzes the colors at the mouse pointer's position inside a loop. When it changes to a certain limit/the menu pops up, an if-sentence becomes true, and triggers a small delay, before the mouse clicks where the accept button is supposed to be/
p = MouseInfo.getPointerInfo().getLocation();
rgb = this.robot.getPixelColor(p.x, p.y);
/(this is the position where the accept button will be relative to all in-game clients in the 16:9 format)/
this.robot.mouseMove((int)(inGameScrnSize.width * 0.4575), (int)(inGameScrnSize.height * 0.4753));
robot.delay(100);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
So my question is: How do I get to access and send I/O-device information from and to the game-client? Is this possible with the java Robot class?