02-03-2015, 07:11 AM
scan and wait S are good for local short-living macros, but they often are unreliable in macros that must work on any computer etc. Some reasons are in scan Help:
Different DPI, ie font size that can be set in Control Panel.
Window shadows. Especially wide shadows are on Windows 10, more than 1 cm.
scan searches in whole client area of the window, and does not depend on image position in it.
Quote:The function may fail after you apply new theme, color scheme, skin, etc, because the background color may change. To make the function independent from such changes, try flag 4. Then it does not compare pixels that have the same color as the top-left pixel of the captured image. Usually it is background color, so if background will change in the future, the function will not fail. Icons usually already have transparent areas, so this is only useful with bitmap files. The function also may fail after you change display color resolution. The function may not find icons in some controls because they slightly change icon colors. Also it will fail to find captured text after changing font smoothing.Some other reasons:
Different DPI, ie font size that can be set in Control Panel.
Window shadows. Especially wide shadows are on Windows 10, more than 1 cm.
scan searches in whole client area of the window, and does not depend on image position in it.
