11-03-2014, 12:43 PM
I have to check for pixel inside some window. But window takes space on screen... So would be nice to move window out and find some way to check for pixel outside of working screen area. Need some help
Receiving pixel
|
11-03-2014, 12:43 PM
I have to check for pixel inside some window. But window takes space on screen... So would be nice to move window out and find some way to check for pixel outside of working screen area. Need some help
11-03-2014, 02:19 PM
Try dialog "Find image". Select "Color of single pixel". Capture. Check "The window can be in background". Test. If does not find, try to select "Window" instead of "Control". If need, specify a RECT variable. Uncheck "Error..." and "Move mouse...". OK.
Example. Macro Macro2459 int w=win("Calculator" "CalcFrame") It works when the window is under other windows or offscreen. Not when minimized.
11-04-2014, 02:09 PM
this is really nice way, thx
05-12-2015, 08:28 AM
Is there any way to save bitmap of such offscreen\under window or part first?(if this faster) Or any way to avoid scan area changes during scan time.
05-12-2015, 08:57 AM
Do you want to find multiple colors, like this algorithm?
Get all pixels (bitmap) ;;this is the slowest part If find(color1 in bitmap) ;;fast ,... else if find(color2 in bitmap) ;;fast ,... else if find(color3 in bitmap) ;;fast ,... ...
05-12-2015, 10:40 AM
Macro Macro2519
int w=win("Paint" "MSPaintApp")
05-12-2015, 11:51 AM
Nice and seems fast enough. Thx Yeah i would like to search for fixed colors like <if find(color1 in bitmap)...> but for some(less amount) with colorDiff. So would be nice to have RGB components based colorDiff in scan. Like 40 difference possible only in blue. Not necessary tho but will cost in usage of higher number overall.
06-01-2015, 03:05 PM
In QM 2.4.3 scan can search for multiple images, and can be faster.
Download here: How to speed up Scan in Widows 8.1? |
« Next Oldest | Next Newest »
|