September 3, 20169 yr 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 ?
September 3, 20169 yr 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);
September 3, 20169 yr Author 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
September 3, 20169 yr 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.
September 3, 20169 yr Author 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.
September 8, 20169 yr 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".
Create an account or sign in to comment