Ayylmao420 Posted September 3, 2016 Posted September 3, 2016 https://docs.oracle.com/javase/7/docs/api/java/awt/AWTPermission.html I did add createRobot to parameters but still getting blocked; Blocked permission: ("java.awt.AWTPermission" "createRobot") Anyone knows what am i doing wrong ?
Khaleesi Posted September 3, 2016 Posted September 3, 2016 The Robot class is blocked in Osbot. Why would you need this anyway? You can send mouse events by doing: getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_PRESSED, System.currentTimeMillis(), 0, x, y, 0, false, MouseEvent.BUTTON1, true);
Ayylmao420 Posted September 3, 2016 Author Posted September 3, 2016 The Robot class is blocked in Osbot. Why would you need this anyway? You can send mouse events by doing: getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_PRESSED, System.currentTimeMillis(), 0, x, y, 0, false, MouseEvent.BUTTON1, true); http://osbot.org/forum/topic/105692-robot-class/?p=1181037
Khaleesi Posted September 3, 2016 Posted September 3, 2016 http://osbot.org/forum/topic/105692-robot-class/?p=1181037 Ya I know... Why do you need them anyways ... everything can be done in the client instead of using the Robot class.
Ayylmao420 Posted September 3, 2016 Author Posted September 3, 2016 Ya I know... Why do you need them anyways ... everything can be done in the client instead of using the Robot class. I just want to test few things, that's all.
Alek Posted September 8, 2016 Posted September 8, 2016 My response was more along the lines of "If it's blocked and there are no optional permission flags for it, then you can't use it".