dominospizza 4 Share Posted December 5, 2017 Is there a way to automatically login through code? Can't find anything in the docs. Can only find the logout method. getInstance().getTabs().logout(); Link to comment Share on other sites More sharing options...
Seraphic 55 Share Posted December 5, 2017 Is there a way to automatically login through code? Can't find anything in the docs. Can only find the logout method. getInstance().getTabs().logout(); You don't need to worry about it. Pretty sure the bot client already handles automatic login. Don't see why you'd need it in your script? Link to comment Share on other sites More sharing options...
Nuclear Nezz 2056 Share Posted December 5, 2017 If you have an account set in the client, there's a RandomEvent that handles logging in when you're logged out. Link to comment Share on other sites More sharing options...
dominospizza 4 Author Share Posted December 6, 2017 If you have an account set in the client, there's a RandomEvent that handles logging in when you're logged out. I don't have an account set in the client, trying to set my own break handler. Which handles breaks at random intervals. Is there already a function for this? Link to comment Share on other sites More sharing options...
Koschei 147 Share Posted December 6, 2017 I don't have an account set in the client, trying to set my own break handler. Which handles breaks at random intervals. Is there already a function for this? Can just make an account and randomize the intervals through here. Not sure if that's what you're asking. https://dreambot.org/forums/index.php/topic/8861-howto-break-system/ Link to comment Share on other sites More sharing options...
dominospizza 4 Author Share Posted December 6, 2017 Can just make an account and randomize the intervals through here. Not sure if that's what you're asking. https://dreambot.org/forums/index.php/topic/8861-howto-break-system/ Is there no way to do it through code? The closest thing I can find is re-running the client through the shell using this. https://dreambot.org/forums/index.php/topic/2360-dreambots-quickstart%E2%84%A2/ Link to comment Share on other sites More sharing options...
Koschei 147 Share Posted December 6, 2017 Is there no way to do it through code? The closest thing I can find is re-running the client through the shell using this. https://dreambot.org/forums/index.php/topic/2360-dreambots-quickstart%E2%84%A2/ You will need to implement your own LoginHandler I would suggest looking at the Client Class in the API specifically look at getGameState and getLoginIndex. Then you will need to interact with rectangles and use the getColorPicker to figure out what part of the Login you are at. Then once you have that all setup just type your username and password using getKeyboard.type(). Kind of hard to explain, but you wanted to know how Link to comment Share on other sites More sharing options...
dominospizza 4 Author Share Posted December 6, 2017 You will need to implement your own LoginHandler I would suggest looking at the Client Class in the API specifically look at getGameState and getLoginIndex. Then you will need to interact with rectangles and use the getColorPicker to figure out what part of the Login you are at. Then once you have that all setup just type your username and password using getKeyboard.type(). Kind of hard to explain, but you wanted to know how No, I understand. Thanks a ton! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.