02-12-2023, 05:18 AM
var w = wnd.find(1, "Document - WordPad", "WordPadClass");
IFImage[] image = {
@"image:iVBORw0KGgoAAAANSUhEUgAAABcAAAASCAYAAACw50UTAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE5SURBVDhP7ZPNSoRQGIbrDroCN11By66lfd1Bi+6ghT8ImiKCKAriz7IZpph2E4zTsl2brqA2KYr5xffBDJ5zRprJ2nXgQQ76Phze73jwUVbwV/zLtyLIi2IFeZ5vSNMU4jiGMAzB931wXRds2wbTNGE2u2OyPIIchbsuVVWZLM+g/FaSfkTfNerksiwzWR5BvlwWgx3ruk5VoBSZTKZMlkeQj+Hk5pPZ/6r8+PqN2Qvy/lXMsgySJKGaoiiCIAjA8zyqynEcmM8fKHN0+QL3z+/07LtGDdQwDMocXjwRV/kr4xqUS6dng1RVRd/ggElyvtrQdwlyrKK/uq6Dtm2haRqo65rEZVnSO03TmCyPIMeOcW078Zq1XFEUJssjyHF4u669f6LF4lG4FZZl0fCwY6wCT/z9T1TBF/suxcMGYCvTAAAAAElFTkSuQmCC",
@"image:iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEwSURBVDhPY/j67ft/amLaGjht6e7/Ulmr4RhZDh3jUoti4PRle/6DwLdf/wkaiEstioEzlu/9L2cZDcaEDASpBYFPPwgY+Pfv//9vvxJ2IS7LUQycuWLf/19//hPlQpjal5/xuHDWyv3gMHnyHtOFk479ROHjUoti4OxVB3CGoXzr6/+dez+gqAWF3/23BAwEhd+tVwhFHpPv/pevuvafPfcyGNdufIKiFm8Yzll98P+LT9jDkCHtzP+qdQ8x1F59gceFc9cc+v/kw///559ihiGyYSCMSy2KgfPWHsYZhugYpPYeMPxOPyRg4E1g+B2/j+lCdIzLchQD56878v8KMEyIcSFM7aG7eFy4YP3R/+ef/P+//zZhF+JSi2EgCIO8A8LIcugYl1oUAynH3/8DABFn8ej01U9GAAAAAElFTkSuQmCC",
};
var a = new List<uiimage>();
uiimage.find(1, w, image, IFFlags.WindowDC, also: o => { a.Add(o); return IFAlso.OkFindMoreOfList; });
if (a.Count == 2) {
int dx = a[1].Rect.left - a[0].Rect.left, dy = a[1].Rect.top - a[0].Rect.top;
print.it(dx, dy);
}