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.

Need help with using MouseMoveProfiles

Featured Replies

So I think I understand how to create different profiles, but I'm not seeing how to set those profiles to be used. Honestly not even sure I'm looking at the right thing for what I'm trying to do.

I'm wanting to speed up mouse movements (by roughly 3 times default speed) while doing the inventory processing part of the script and then slow it back down while doing the banking part of the script.

15 hours ago, Alakazizam said:

So I think I understand how to create different profiles, but I'm not seeing how to set those profiles to be used. Honestly not even sure I'm looking at the right thing for what I'm trying to do.

I'm wanting to speed up mouse movements (by roughly 3 times default speed) while doing the inventory processing part of the script and then slow it back down while doing the banking part of the script.

Join discord https://discord.com/invite/dumFZaM

2 hours ago, Wacky Jacky said:

https://osbot.org/api/org/osbot/rs07/event/interaction/MouseMoveProfile.html
 

make a new profile set the speed and then set the profile active each time you want to use the sped up profile, but after the task is done set a default profile active again. If not it will stay quick 

Set the profile active like so: 

getBot().setMouseMoveProfile(new MouseMoveProfile(setSpeedBaseTime(int value here ))));

something like that, I am on mobile not sure. 

Edited by Wacky Jacky

  • Author
7 hours ago, Wacky Jacky said:

Set the profile active like so: 

getBot().setMouseMoveProfile(new MouseMoveProfile(setSpeedBaseTime(int value here ))));

something like that, I am on mobile not sure. 

Thanks. Yeah I got it figured out how to activate it, but I played with changing up a lot of the variables and hardly noticed any sort of difference in the speed of the mouse and nothing that really helped my actions per hour.

36 minutes ago, Alakazizam said:

Thanks. Yeah I got it figured out how to activate it, but I played with changing up a lot of the variables and hardly noticed any sort of difference in the speed of the mouse and nothing that really helped my actions per hour.

If you set the speed to 0 it should teleport the mouse around, when I am home I shall take a look and let you know. 

@Alakazizam I just did some testing and the result is this: the dropping is quick, the opening bank is real, real slow...S8OsXiA.gif

How did I do it?:
 

@Override
public int onLoop() throws InterruptedException {
  if (!inventory.isEmpty()) {
    //So basically just this, set the speed, (also did never miss because of the speed ^^)
    getBot().setMouseMoveProfile(new MouseMoveProfile().setSpeedBaseTime(100).setOvershoots(0)); 
    log("should drop");
    drop.shiftClickDropAllDownToUpExcept(false, "Coins");
  }


  if (!bank.isOpen()) {
	//Here I reset the speed, but very slow for the next task
    getBot().setMouseMoveProfile(new MouseMoveProfile().setSpeedBaseTime(800));
    getBank().open();
    Sleep.sleepUntil(() -> bank.isOpen(), 3000);
  }

  return 3000;
}

Enjoy! -- Tinker a bit with the flow, speed, miss etc... all those settings to get what you like.

Edited by Wacky Jacky

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.