Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30

Thread: ShopScreen fix

  1. #26
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    Regardless of what you compare the accuracy of counting colors to, you can decrease the amount of false positives for counting colors by dividing the area into smaller areas and doing multiple counts.
    I sure hope no one is going to do several FindColors as that would be quite a few API calls...

    better off getting all the colors and checking it line by line, which I suspect becomes very similar to FindTextTPA...

    Plus, if there's such a huge discussion between Simba and Scar just use defines. All more of a reason to work on SRL 5.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #27
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    not to be a douchebag but Simba's OCR needs work if it's going to be relied on. I continually get Sa''?on instead of Salmon, Po,,ta? for Portal, etc. I think using countcolor() negates the chance of that happening. However if the OCR is working 100% then it would be far more accurate I suppose.
    It's a bit off topic; but are you talking about Uptext? If so, I'd like a screenshot of it failing, or where it fails. (But start a thread somewhere in Simba forum)



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #28
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    It's a bit off topic; but are you talking about Uptext? If so, I'd like a screenshot of it failing, or where it fails. (But start a thread somewhere in Simba forum)
    uptext and blackchatmessage. Black chat message is a bit more reliable but it does fail still. I'm just assuming that because those two are failing that the rest of the text finding would be failing somewhat. But who knows, I'll start a thread sometime in the near future here.
    “Ignorance, the root and the stem of every evil.”

  4. #29
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Naum I couldn't get yours to work so here:
    SCAR Code:
    Function ShopScreen : Boolean;
    Begin
      Result := FindTextTPA(2070783, 10, 58, 303, 85, 317, 'Right', StatChars, Nothing);
    End;

    Tested with:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    Function N_ShopScreen : Boolean;
    Begin
      Result := FindTextTPA(2070783, 10, 58, 303, 85, 317, 'Right', StatChars, Nothing);
    End;

    begin
    SetUpSRL;
    ActivateClient;
    if N_ShopScreen then
      Writeln('yeeuhh');
    end.

    Output:
    SCAR Code:
    New client targeted
    Successfully compiled (2062 ms)
    SRL Compiled in 15 msec
    yeeuhh
    Successfully executed

  5. #30
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Commited.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •