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.

Error to auto start session with "A Simple Login Handler"

Featured Replies

Error to auto start session with A Simple Login Handler after the connection fell a few seconds.

The system initiates session with this API perfectly, but when the connection is dropped and the system is re-established, it does not detect that a user is not logged in and does not perform the auto-login.

  • Author
7 hours ago, FrostBug said:

Maybe didn't execute the event properly

Here as I have the code.

LoginEvent loginEvent;
@Override
public int onLoop() throws InterruptedException{
	if(!getClient().isLoggedIn()) {
		loginEvent = new LoginEvent(usuario,clave);
		getBot().addLoginListener(loginEvent);
		execute(loginEvent);
	}else {
		doTasks();
	}
	return 1000;
}

It is assumed that onLoop() is repeated in an interval as indicated in the "return", in this case 1 second.

 

16 minutes ago, trainux said:

Here as I have the code.


LoginEvent loginEvent;
@Override
public int onLoop() throws InterruptedException{
	if(!getClient().isLoggedIn()) {
		loginEvent = new LoginEvent(usuario,clave);
		getBot().addLoginListener(loginEvent);
		execute(loginEvent);
	}else {
		doTasks();
	}
	return 1000;
}

It is assumed that onLoop() is repeated in an interval as indicated in the "return", in this case 1 second.

 

The login handler seems to pause the ScriptExecutor. This would conflict with the fact that it's also a ResponseCode listener, as the ResponseCode listeners (I believe) are invoked between calls to onLoop (which will not happen when ScriptExecutor is paused).

Perhaps it's outdated.

Edited by FrostBug

  • Author
54 minutes ago, FrostBug said:

The login handler seems to pause the ScriptExecutor. This would conflict with the fact that it's also a ResponseCode listener, as the ResponseCode listeners (I believe) are invoked between calls to onLoop (which will not happen when ScriptExecutor is paused).

Perhaps it's outdated.

any solution?
 

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.