Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

java.security.AccessControlException: access denied ("java.awt.AWTPermission" "createRobot")

Featured Replies

How can I enable the use of the Java Robot class in my scripts? Thanks.

  • Author

You can't

I need it, otherwise this bot is totally useless to me as I need to implement my own mouse methods to get the ban rate down to something acceptable :/ There is always a way.. Can I get direct access to the robot osbot already uses?

Edited by colby__

I need it, otherwise this bot is totally useless to me as I need to implement my own mouse methods to get the ban rate down to something acceptable :/ There is always a way.. Can I get direct access to the robot osbot already uses?

Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?

  • Author

Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?

Uhh mouse detection is the core of their bot detection system no? Where did you hear they do not analyze mouse movements? How else would they detect bots?

Also I want to simulate a different type of mouse input, some cases it will need to move instantly across the screen which this mouse arbitrarily does not support as far as I can tell. Where is the ClientMouseEventHandler instance ? The class is obfuscated.. lol

I need it, otherwise this bot is totally useless to me as I need to implement my own mouse methods to get the ban rate down to something acceptable :/ There is always a way.. Can I get direct access to the robot osbot already uses?

osbot doesnt use Robot for input, events are dispatched directly to the canvas

Edited by Dog_

  • Author

osbot doesnt use Robot for input, events are dispatched directly to the canvas

So how can I make the mouse move instantly to a location? Also, how can I make the client think that the mouse has left the game window? IE someone actually playing runescape would be using other apps at the same time in this day and age. But the mouse seems to stop at the bounds. of the client.

Uhh mouse detection is the core of their bot detection system no? Where did you hear they do not analyze mouse movements? How else would they detect bots?

Also I want to simulate a different type of mouse input, some cases it will need to move instantly across the screen which this mouse arbitrarily does not support as far as I can tell. Where is the ClientMouseEventHandler instance ? The class is obfuscated.. lol

Haha, not really. I abused a mouse recorder(same path, every time) on osbuddy day and night for 6 months straight. It took them that long to ban me, and it was a 14-day... that's less on the ban meter than a 2-day

 

i really , really doubt that jagex bases bans on mouse data. 6 months day in day out

Haha, not really. I abused a mouse recorder(same path, every time) on osbuddy day and night for 6 months straight. It took them that long to ban me, and it was a 14-day... that's less on the ban meter than a 2-day

 

i really , really doubt that jagex bases bans on mouse data. 6 months day in day out

It's just a flag, they collect the data, but won't ban on that data alone. (That's just my guess though.)

 

 

Honestly, jagex isn't that retarded. They're not going to let us know what got us banned. (Just my theory btw) If I were them, I would just collect a list of all these flags, albeit via client, mouse, ip, or any other detection method, put em on a list and only start banning them when they've been in that bowl for a while. just grab a random number of accounts and pce them out of the game. 

Otherwise we'd just be able to determine what gets you banned via trial and error by editing pieces of code one thing at a time, almost like a super long and frustrating game of mastermind

  • Author

So nobody knows how to move the mouse instantly?

So nobody knows how to move the mouse instantly?

 

It has already been mentioned.

 

ClientMouseEventHandler class

The methods you're looking for is generateBotMouseEvent

EDIT: An instance can be obtained thru getBot().getMouseEventHandler()

 

Also on the discussion of jagex looking at mouse movements. If you take a look at the network traffic that leaves the client, you'll quickly notice that the only thing actually sent to jagex is clicks (and w/e other events, not including mouse-movement, though). That's not to say that they don't have the ability to look at it; but I haven't noticed any large or small dumps of mouse movement data leaving the client yet, so at least it can't be a common occurence.

 

Edited by FrostBug

So how can I make the mouse move instantly to a location? Also, how can I make the client think that the mouse has left the game window? IE someone actually playing runescape would be using other apps at the same time in this day and age. But the mouse seems to stop at the bounds. of the client.

 

From the API for ClientMouseEventHandler:

generateBotMouseEvent(int id, long time, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button, boolean botInput)
An example of moving the mouse instantly:

getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, 0, true);
Just noticed the move outside the screen thing:

getMouse().moveOutsideScreen()

Edited by Lemons

  • Author

It has already been mentioned.

 

ClientMouseEventHandler class

The methods you're looking for is generateBotMouseEvent

EDIT: An instance can be obtained thru getBot().getMouseEventHandler()

 

Also on the discussion of jagex looking at mouse movements. If you take a look at the network traffic that leaves the client, you'll quickly notice that the only thing actually sent to jagex is clicks (and w/e other events, not including mouse-movement, though). That's not to say that they don't have the ability to look at it; but I haven't noticed any large or small dumps of mouse movement data leaving the client yet, so at least it can't be a common occurence.

 

 

 

 

From the API for ClientMouseEventHandler:

generateBotMouseEvent(int id, long time, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button, boolean botInput)
An example of moving the mouse instantly:

getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, 0, true);
Just noticed the move outside the screen thing:

getMouse().moveOutsideScreen()

 

 

Thanks guys great help! One last question. The method to move the mouse outside of the screen has a lot of extra functionality I do not want, such as actually moving the mouse to get it outside of the screen, so I assume I can just use mouseExited and mouseClicked etc and it will fire directly to the client correct? Also what is the botInput popupTrigger and time variables for exactly? The API is blank haha

Edited by colby__

Thanks guys great help! One last question. The method to move the mouse outside of the screen has a lot of extra functionality I do not want, such as actually moving the mouse to get it outside of the screen, so I assume I can just use mouseExited and mouseClicked etc and it will fire directly to the client correct? Also what is the botInput popupTrigger and time variables for exactly? The API is blank haha

 

MouseClicked is all you need really AFAIK. It will fire the event directly yes.

EDIT: scratch that, I believe the proper procedure is:

MousePressed

MouseReleased

MouseClicked

In that order

 

botInput indicates whether this mouse event was generated by the bot, or by the user

popuptrigger indicates whether or not this event triggers a popup (it does not)

time is the timestamp for which this event occured (now)

 

From AWT MouseEvent:

0c94e04ac6f7096a5e42182060f5534a.png

Edited by FrostBug

  • Author

MouseClicked is all you need really AFAIK. It will fire the event directly yes.

EDIT: scratch that, I believe the proper procedure is:

MousePressed

MouseReleased

MouseClicked

In that order

 

botInput indicates whether this mouse event was generated by the bot, or by the user

popuptrigger indicates whether or not this event triggers a popup (it does not)

time is the timestamp for which this event occured (now)

 

From AWT MouseEvent:

0c94e04ac6f7096a5e42182060f5534a.png

What would be a popup trigger? When would it be true? Also do you know which component I should pass?

Edited by colby__

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.