Issue: productionScreen.isOpen() not working/not being recognized

  1. issueid=363 11-12-2014 09:09 PM
    SRL Member
    productionScreen.isOpen() not working/not being recognized
    May be different for more common production windows, but it has not been working with a Magic Production window, in regards to the Make Leather Lunar Spell.

    I am writing a Make Leather script, which does have a production screen.

    The basic code logic goes as:

    Code:
    Use Make Leather Spell -> Dragonhide
    
    if productionScreen.isOpen(1500) then
      productionScreen.clickStart();
    productionScreen.clickStart() works completely fine.

    However, it did not seem to recognize when the production screen did in-fact open, and thus would not start production.

    My little workaround:

    Simba Code:
    function colorCheck(): boolean; // Temporary (hopefully) workaround for productionScreen.isOpen(1500)
    var
      checkBox: TBox;
      checkBoxTPA: TPointArray;
    begin
      checkBox := [492, 196, 508, 266];
      checkBoxTPA := checkBox.createTPA();
      result := checkBox.colorExists(4381026, 71)  // Looks for the green check marks next to spell requirements
    end;

    Which I use in turn like:

    Code:
    waitFunc(@colorCheck, 50, 3000); // Temp workaround
      productionScreen.clickStart();
    Just checks a box for the green spell requirement check marks in the production screen, which works really well, but would be totally unnecessary if
    Code:
    productionScreen.isOpen()
    worked.
Issue Details
Issue Number 363
Project SRL Bugs and Suggestions
Status Not a Bug
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




  1. 11-25-2014 03:22 PM
    Issue Changed by Ashaman88
    • Status changed from Unconfirmed to Cannot Replicate
  2. 01-28-2015 01:19 AM
    Issue Changed by The Mayor
    • Status changed from Cannot Replicate to Not a Bug
+ Reply