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.

[2.3.65] click() only works sometimes

Featured Replies

OSBot version number: 2.3.65

Description of the bug/error: The click() boolean only works sometimes. Sometimes it works, sometimes it doesn't.

Instructions how to replicate the bug/error: Use click() in a setting where the mouse needs to move. The bug doesn't occur when it's just clicking one spot. For example click(false) works fine.

(IF APPLICABLE) SSCCE that causes the bug/error:

    @Override
    public int onLoop() throws InterruptedException 
    {	
    	int yes = 0;
    	int no = 0;
    	for (int i = 0; i <= 100; i++)
    	{
    		if(mouse.click(random(0, 500), random(0, 500), false))
    		{
    			yes++;
    		}
    		else
    		{
    			no++;
    		}
    		sleep(random(10, 500));
    	}
    	log("Times it worked: " + yes);
    	log("Times it didn't: " + no);
    	return 10000;
    }

The log says it worked 25 times and didn't work 76 times.

This is just an example, not how I actually use the code.

This only occurs when the mouse needs to move. So clicking in the same spot works every time.

 

(IF APPLICABLE) Script name ran causing the bug/error. Optionally include relevant parts of source code:

(IF APPLICABLE) Screenshots:

Pretty interesting discussion and it's something I was looking into. Generally speaking, OSBot works best with entity destinations. I'm aware of the situation so I'm going to keep it closed for now but move it to the Approved Bugs/Suggestions section.

Guest
This topic is now closed to further replies.

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.