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.

Simulate Key Held Down?

Featured Replies

There's a keyboard section in the API.

getKeyboard().pressKey(int keyCode)

When you want to release the key do:

getKeyboard().releaseKey(int keyCode)

Edited by d0zza

Where do you grab the key-code values? I'm used to using javaFX for my applications, javaFX has an enum type KeyCode. 

Type methods are easy because they parameterize char/String variables. 

  • Author
8 hours ago, d0zza said:

There's a keyboard section in the API.

getKeyboard().pressKey(int keyCode)

When you want to release the key do:

getKeyboard().releaseKey(int keyCode)

press key only presses the key once instead of holding it down when I did some tests.. is there some other way?

8 hours ago, MattGP said:

press key only presses the key once instead of holding it down when I did some tests.. is there some other way?

Hmm I'm not sure then, but why are you trying to simulate the space key being held down?

If it's for when you're talking to npcs look into the dialogue section of the API

  • Author
28 minutes ago, d0zza said:

Hmm I'm not sure then, but why are you trying to simulate the space key being held down?

If it's for when you're talking to npcs look into the dialogue section of the API

Well for 1) tutorial island is always in dialogue so I thought it might be best to make my own complete dialogue and 2) a normal player would simply hold down space bar to go through dialogue!

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.