Scene Setup:
The user has two monitors. The primary monitor has a resolution of 1920×1080, corresponding to coordinates Left: 0, Top: 0, Right: 1920, Bottom: 1080.
The secondary monitor has a resolution of 1600×900, corresponding to coordinates Left: –1600, Top: 0, Right: 0, Bottom: 900.
The same image is searched sequentially across both monitors.
Test 1 – Target image present on both monitors: result returned correctly.
- Search Area: Left[0],Top[0],Right[1920],Bottom[1080]
>> DLL Return: {1}[274|195|28|30](time=109ms, backend=SSE2, Source=1920x1080, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=0|0|1920|1080|1920x1080, screen=0)
- Search Area: Left[-1600],Top[0],Right[0],Bottom[900]
>> DLL Return: {1}[-1488|130|28|30](time=125ms, backend=SSE2, Source=3520x900, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=-1600|0|0|900|1600x900, screen=0)
Found 2 match(es)!
Match #1 found at: 274, 195
Match #2 found at: -1488, 130
Test 2 – Target image absent on primary monitor but present on secondary: result returned correctly.
- Search Area: Left[0],Top[0],Right[1920],Bottom[1080]
>> DLL Return: {0}[](time=172ms, backend=SSE2, Source=1920x1080, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=0|0|1920|1080|1920x1080, screen=0)
!> UDF ERROR: Invalid format from DLL. Could not find '{...}' and '[...]' parts.
- Search Area: Left[-1600],Top[0],Right[0],Bottom[900]
>> DLL Return: {1}[-1488|130|28|30](time=156ms, backend=SSE2, Source=3520x900, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=-1600|0|0|900|1600x900, screen=0)
Found 1 match(es)!
Match #1 found at: -1488, 130
Test 3 – Target image present on primary monitor but absent on secondary: result returned incorrectly.
- Search Area: Left[0],Top[0],Right[1920],Bottom[1080]
>> DLL Return: {1}[274|195|28|30](time=94ms, backend=SSE2, Source=1920x1080, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=0|0|1920|1080|1920x1080, screen=0)
- Search Area: Left[-1600],Top[0],Right[0],Bottom[900]
>> DLL Return: {1}[274|195|28|30](time=156ms, backend=SSE2, Source=3520x900, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=-1600|0|0|900|1600x900, screen=0)
Found 2 match(es)!
Match #1 found at: 274, 195
Match #2 found at: 274, 195
out of range
Test 4 – Target image absent on both monitors: result returned correctly.
- Search Area: Left[0],Top[0],Right[1920],Bottom[1080]
>> DLL Return: {0}[](time=141ms, backend=SSE2, Source=1920x1080, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=0|0|1920|1080|1920x1080, screen=0)
!> UDF ERROR: Invalid format from DLL. Could not find '{...}' and '[...]' parts.
- Search Area: Left[-1600],Top[0],Right[0],Bottom[900]
>> DLL Return: {0}[](time=203ms, backend=SSE2, Source=3520x900, files=1, cache_hits=0, cache_misses=0, tolerance=10, scale=1-1:0.1, cpu=SSE2:Y, capture=-1600|0|0|900|1600x900, screen=0)
!> UDF ERROR: Invalid format from DLL. Could not find '{...}' and '[...]' parts.