- Joined
- May 19, 2015
- Messages
- 296
- Thread Author
- #1
Just out of curiousity I want to know. Why they wouldn't use these methods?
1. MouseInfo
MouseInfo (Java Platform SE 7 )
Why Jagex doesn't use mouseinfo to detect the actual position of mouse on our device?
Example:
2. Tasklist
Using this command to get list of tasks, then check is the bot process running
1. MouseInfo
MouseInfo (Java Platform SE 7 )
Why Jagex doesn't use mouseinfo to detect the actual position of mouse on our device?
Example:
Code:
int inputX = gamepanel.getLocationOnScreenX() + mouseX;
int realMouseX = MouseInfo.getPointerInfo().getLocation().getX();
int inputY = gamepanel.getLocationOnScreenY() + mouseY;
int realMouseY = MouseInfo.getPointerInfo().getLocation().getY();
if(inputX != realMouseX || inputY != realMouseY) {
//dosomething
}
2. Tasklist
Code:
Runtime.getRuntime().exec(System.getenv("windir") +"\\system32\\"+"tasklist.exe");