Thread: [Renamed]Pressing enter to login when on password entry

Results 1 to 3 of 3
  1. #1 [Renamed]Pressing enter to login when on password entry 
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,320
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    Renamed version

    Credits: 99% Vinesniper, 1% me for renaming.
    Quote Originally Posted by vinesniper
    infomation:well its basicly to add when you press enter when on the password entry, it will log you in, like on runescape.
    Client type: Renamed
    requirements: Maybe a little java experience.
    Base: Moparisthebest's AllDummy'sRemoved

    step 1:
    Open client.java, search for:

    Code:
    private void processLoginScreenInput()
    step 2:
    Now find:
    Code:
    if(loginScreenCursorPos == 1)
    yours will prob look like this:
    Code:
                        if(loginScreenCursorPos == 1)
                        {
                            if(l1 == 8 && myPassword.length() > 0)
                                myPassword = myPassword.substring(0, myPassword.length() - 1);
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                loginScreenCursorPos = 0;
                            if(flag1)
                                myPassword += (char)l1;
                            if(myPassword.length() > 20)
                                myPassword = myPassword.substring(0, 20);
                        }
    step 3:
    Change it to:
    Code:
                        if(loginScreenCursorPos == 1)
                        {
                            if(l1 == 8 && myPassword.length() > 0)
                                myPassword = myPassword.substring(0, myPassword.length() - 1);
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                //loginScreenCursorPos = 0;
    			loginFailures = 0;
                        login(myUsername, myPassword, false);
                            if(flag1)
                                myPassword += (char)l1;
                            if(myPassword.length() > 20)
                                myPassword = myPassword.substring(0, 20);
                        }
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
    Untested, but pretty sure it works

    step 1:
    If you want it to be so when you press enter on server instead, use this:.
    Find:
    Code:
    if(loginScreenCursorPos == 2)
    step 2:
    Find
    Code:
    loginScreenCursorPos = 0
    Replace with:
    Code:
    			loginFailures = 0;
                        login(myUsername, myPassword, false);
    Hope this helps people.
    Reply With Quote  
     

  2. #2  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Hehe. Already gave to my mate Demetri on MSN hours ago
    But thanks for posting for others


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    May 2008
    Posts
    1,235
    Thanks given
    31
    Thanks received
    25
    Rep Power
    279
    thanks
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •