Results 1 to 4 of 4

Thread: stuck in "findcolor''

  1. #1
    Join Date
    Mar 2008
    Posts
    426
    Mentioned
    1 Post(s)
    Quoted
    116 Post(s)

    Default stuck in "findcolor''

    Even if i put..

    if not FindColor(sex, sey, AddyColor, MSX1, MSY1, MSX2, MSY2) then
    begin
    chances := Chances + 1;
    TerminateScript;
    end;

    It just searches and searches for the color.... like its stuck in the 'find color'.. when there are none left. Its perfect at finding them when they are there.. but now it just searches in the dark nothingness.. around random areas.. Doesn't the function have a fail safe? like time out thing? or how do i add one?
    Same with findobjTPA etc..



  2. #2
    Join Date
    May 2013
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    yeah this is strange.
    Last edited by ActualNoob; 06-12-2013 at 01:10 PM.

  3. #3
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    If a call to FindColor is resulting in a loop, then you're doing something wrong somewhere else. FindColor doesn't take more than a few ms ever. Could you post more of your code?

  4. #4
    Join Date
    Mar 2008
    Posts
    426
    Mentioned
    1 Post(s)
    Quoted
    116 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    If a call to FindColor is resulting in a loop, then you're doing something wrong somewhere else. FindColor doesn't take more than a few ms ever. Could you post more of your code?
    Thx for that.. Looked at the entire code and found a silly loop else where.



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
  •