- Joined
- Dec 20, 2016
- Messages
- 37
- Thread Author
- #1
Hello I am trying to access this interface: (red box)
Rift — Postimage.io
I have no idea about how to go about this, any suggestions?
I only want to check if it is not null, if I can detect that this interface is not null then I can use the keyboard to press "1" which will activate the control in the yellow box.
Solution:
I used Interfaces.newQuery() method to find the interface.
Rift — Postimage.io
I have no idea about how to go about this, any suggestions?
I only want to check if it is not null, if I can detect that this interface is not null then I can use the keyboard to press "1" which will activate the control in the yellow box.
Solution:
I used Interfaces.newQuery() method to find the interface.
PHP:
@Override
public boolean validate() {
InterfaceComponentQueryResults energy_button = Interfaces.newQuery().actions("Gain-energy").results();
if (energy_button.size() >= 1) {
getLogger().info("Detected the following interfaces: ");
for (InterfaceComponent ic : energy_button) {
getLogger().info(ic.toString());
if (ic.isVisible()) return true;
}
}
return false;
}
Last edited: