Runescape login screen got updated which means players[].login() will no longer work.
If anyone wants a quick fix before official update, go to C:\Simba\Includes\SRL-6\lib\core and open players.simba
Scroll down to __setInputBoxes() and replace the whole function with:
Simba Code:
{*
__setInputBoxes()
~~~~~~~~~~~~~~~~~
.. code-block:: pascal
function __setInputBoxes(): boolean;
Finds and sets the username and password box parameters. This function is
designed to work with any screen size. Returns true if both boxes are found.
.. note::
- by Coh3n
- Last updated: 22nd September 2014 by The Mayor
Example:
.. code-block:: pascal
__setInputBoxes();
*}
{$IFNDEF CODEINSIGHT}
const
__ACTIVE_BORDER_LENGTH = 524;
__INACTIVE_BORDER_LENGTH = 525;
function __setInputBoxes(): boolean;
var
tpaActive, tpaInactive: TPointArray;
bdsActive, bdsInactive: TBox;
w, h: integer;
begin
getClientDimensions(w, h);
findColors(tpaActive, 6774863, 0, 0, w-1, h-1); // active box border color
findColors(tpaInactive, 6906451, 0, 0, w-1, h-1); // inactive box border color
if (length(tpaActive) = __ACTIVE_BORDER_LENGTH) and (length(tpaInactive) = __INACTIVE_BORDER_LENGTH) then
begin
result := true;
print('__setInputBoxes(): Set username and password boxes', TDebug.SUB);
bdsActive := tpaActive.getBounds();
bdsInactive := tpaInactive.getBounds();
// sets the username box as the box that's closer to the top of the screen
if (bdsActive.y1 < bdsInactive.y1) then
begin
_boxUsername := bdsActive;
_boxPassword := bdsInactive;
end else begin
_boxUsername := bdsInactive;
_boxPassword := bdsActive;
end;
end;
end;
{$ENDIF}