← Back to team overview

sikuli-driver team mailing list archive

[Bug 988206] [NEW] [request] exists(image, 0) should return immediately even if pattern is not found

 

Public bug reported:

When specifying a short waiting time or 0, the find operation only makes
one search trial and then returns.

But in case of not found, it returns only after the step time, that is
given for repeated searches by the WaitScanRate (3.0 as standard, which
evaluates to a minimum elapse time of 0.3 seconds).

So if you have a very fast positive search of lets say below 0.01
seconds, the FindFailed situation always returns after the elapse time
(standard 0.3 seconds).

Since exists(image, 0) is mainly used in decision situations,

***** It would be desirable 
that even if the search fails, exists() should return latest after the given wait time, if the search is done faster.
If 0 is given, this should lead to that exists() returns immediately after completing the search.

** Affects: sikuli
     Importance: Wishlist
         Status: New

** Summary changed:

- [request] exists(image, 0) should return immediately even if pattern not found
+ [request] exists(image, 0) should return immediately even if pattern is not found

** Changed in: sikuli
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/988206

Title:
  [request] exists(image, 0) should return immediately even if pattern
  is not found

Status in Sikuli:
  New

Bug description:
  When specifying a short waiting time or 0, the find operation only
  makes one search trial and then returns.

  But in case of not found, it returns only after the step time, that is
  given for repeated searches by the WaitScanRate (3.0 as standard,
  which evaluates to a minimum elapse time of 0.3 seconds).

  So if you have a very fast positive search of lets say below 0.01
  seconds, the FindFailed situation always returns after the elapse time
  (standard 0.3 seconds).

  Since exists(image, 0) is mainly used in decision situations,

  ***** It would be desirable 
  that even if the search fails, exists() should return latest after the given wait time, if the search is done faster.
  If 0 is given, this should lead to that exists() returns immediately after completing the search.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/988206/+subscriptions


Follow ups

References