Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Can't detect interfaceComponents that aren't visible?

Joined
Nov 12, 2016
Messages
3
Basically I am trying to detect if the password has not been typed in yet. This is returning an error though.
I can make it return visible but why can I not make it return not visible?





final InterfaceComponent password = Interfaces.newQuery().textContains("*****").results().first();


if (!password.isVisible()) {

Keyboard.type("password", true);


Execution.delay(3000, 4000);
}
 
Joined
Dec 10, 2014
Messages
3,255
Basically I am trying to detect if the password has not been typed in yet. This is returning an error though.
I can make it return visible but why can I not make it return not visible?





final InterfaceComponent password = Interfaces.newQuery().textContains("*****").results().first();


if (!password.isVisible()) {

Keyboard.type("password", true);


Execution.delay(3000, 4000);
}
OSRS or RS3?
The OSRS login screen is a little bit special, I don't think it's possible to do it using InterfaceComponents. I'd suggest downloading and running Open Interface Explorer if you still want to find interfaces though, it has an issue running from the bot store, but locally it's fine.
 
Top