Moparscape - RSPS Community

RuneScape 2 Development => RS Client Hacking => Topic started by: Ambokile on March 08, 2015, 10:14:29 AM

Title: [317refactor] Enter to login
Post by: Ambokile on March 08, 2015, 10:14:29 AM
Hi all. Short snippet here to make it so that if you press enter on the login screen whilst selecting the password, it will attempt to log you in.

Head to your updateLogin method and find:
Code: Java
  1. }elseif(loginScreenFocus ==1){

Beneath that, replace this code:
Code: Java
  1. if(character ==9|| character ==10
  2.                 || character ==13)
  3.         loginScreenFocus =0;

With this:
Code: Java
  1. if(character ==9|| character ==13)
  2.         loginScreenFocus =0;
  3. if(character ==10)
  4.         login(enteredUsername, enteredPassword, false);