Ayylmao420 Posted September 3, 2016 Share 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 ? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 3, 2016 Share 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); Quote Link to comment Share on other sites More sharing options...
Ayylmao420 Posted September 3, 2016 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 3, 2016 Share 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. Quote Link to comment Share on other sites More sharing options...
Ayylmao420 Posted September 3, 2016 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Alek Posted September 8, 2016 Share 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". Quote Link to comment Share on other sites More sharing options...