This should work for you. Might have a few small mistakes in it, I don't have simba on this computer.
Simba Code:
function FindLogin: boolean;
var
Ax, Ay, ButtonDTM: integer;
begin
ButtonDTM := DTMFromString(''); //Add the dtm for the login button.
if FindDTM(ButtonDTM, Ax, Ay, 0, 0, 0, 0) then //Add the Screen Coordinates.
begin
Mouse(Ax, Ay, 1, 1, true);
SendKeys('username', 100);
PressKey(28); //Enter key
SendKeys('password', 100);
PressKey(28); //Enter key
Result := True;
end;
FreeDTM(ButtonDTM);
end;
Simba Code:
if FindLogin then
writeln('Logged Back In');