Skip 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.

mouse press release ??

Featured Replies

Mouse press and  releasedo it

Similar to the keyboard pressKey(int keyCode) releaseKey(int keyCode)

Desired effect

        mouse.press;

         sleep(100);

        mouse.release;

help!!!!

Edited by dayong143333333

  • Author
13 minutes ago, Chris said:

thanks !

but 

I'm a little dizzyđŸ˜±

 

public void generateBotMouseEvent(int id, // detailed explanation
              long time,           // detailed explanation
              int modifiers,       // detailed explanation
              int x,               // detailed explanation
              int y,               // detailed explanation
              int clickCount,       // detailed explanation
              boolean popupTrigger, //detailed explanation
              int button,           //detailed explanation
              boolean botInput)     //detailed explanation

Please explain👍
I am a rookie

Examples 
 

Quote

private void pressMouse() {
		getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_PRESSED,
				System.currentTimeMillis(), 0, getMouse().getPosition().x, getMouse().getPosition().y, 1, false,
				MouseEvent.BUTTON1, true);
	}
	
private void releaseMouse() {
		getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_RELEASED,
				System.currentTimeMillis(), 0, getMouse().getPosition().x, getMouse().getPosition().y, 1, false,
				MouseEvent.BUTTON1, true);
}

 

 

 

 

public void generateBotMouseEvent(int id, // MouseEvent.MOUSE_PRESSED or MouseEvent.MOUSE_RELEASED I think there maped to 1 and 0
              long time,           // The system time of when you want this click to happen.
              int modifiers,       // Set this to 0.
              int x,               //the x on a cartisian plane      (0,0) is top left
              int y,               // the y on a cartisian plane
              int clickCount,       // 1 is click once 2 is double ...
              boolean popupTrigger, //just make this false
              int button,           //MouseEvent.BUTTON1 ,  MouseEvent.BUTTON2  right/left
              boolean botInput)     //make this true

 

 

This a tip for all new to coding and want to see exaples of obscure code with bad docs.(I have said it like 30 times)

  1. goto github.com
  2. login
  3. type the string of the package you are using your case "org.osbot.rs07.input.mouse.MouseDestination;" put osbot after 
  4.  click Code its under Repositories  (https://github.com/search?q=org.osbot.rs07.input.mouse.MouseDestination&type=Code)
  5. Look at the code and try to make it work.
  6. If you cant find anything try searching other keywords or using something else or rethink logic

 

  • Author
1 hour ago, Nbacon said:

Examples 
 

 

 

 


public void generateBotMouseEvent(int id, // MouseEvent.MOUSE_PRESSED or MouseEvent.MOUSE_RELEASED I think there maped to 1 and 0
              long time,           // The system time of when you want this click to happen.
              int modifiers,       // Set this to 0.
              int x,               //the x on a cartisian plane      (0,0) is top left
              int y,               // the y on a cartisian plane
              int clickCount,       // 1 is click once 2 is double ...
              boolean popupTrigger, //just make this false
              int button,           //MouseEvent.BUTTON1 ,  MouseEvent.BUTTON2  right/left
              boolean botInput)     //make this true

 

 

This a tip for all new to coding and want to see exaples of obscure code with bad docs.(I have said it like 30 times)

  1. goto github.com
  2. login
  3. type the string of the package you are using your case "org.osbot.rs07.input.mouse.MouseDestination;" put osbot after 
  4.  click Code its under Repositories  (https://github.com/search?q=org.osbot.rs07.input.mouse.MouseDestination&type=Code)
  5. Look at the code and try to make it work.
  6. If you cant find anything try searching other keywords or using something else or rethink logic

 

thanks thanks thanks thanks👍

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.