Jump to content

How do I logout and end the script?


Recommended Posts

Posted

I'm trying to set up a simple logout function but for some reason it's not working.

 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().logOut();

When I run this, the log and sleeps work and then the bot navigates to the logout tab, highlights the 'logout' button and then does nothing 🤨

Posted

I've managed to log out now using 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().open();
		getLogoutTab().logOut();

but the auto-logger just logs me back in repeatedly - how can I terminate the script if I have logged off, without the onLoop continuing to loop?

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...