bjiyura wrote:Hello, can someone explain how scripts interact with the window crafting.
- Code: Select all
void main() {
def eq = getCraftWindow();
sendAction("craft", "linencloth");
if (eq == null) {
toConsole(" Cant Open ");
}
else {
eq.pushButton("Craft");
}
waitHourglass();
}
The window opens, but start Kraft does not work (
- Code: Select all
sendAction("craft", "linencloth"); //send request
sleep(3000); //wait some time
def eq = getCraftWindow(); // and get craft window
if (eq == null) {
toConsole(" Cant Open ");
} else {
eq.pushButton("Craft");
waitHourglass();
}