Jump to content

rarmig

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by rarmig

  1. Another useful feature would be some kind of image search, finding a region that matches a image pixel for pixel. One way it could be done, is to allow loading a image file into a snapshot, and then search an existing snapshot, for a region that match pixel for pixel. ie. something like ImageSearch(snapshotToSearch, snapshotToFind, minCountToMatch, shadevariation), where minCountToMatch is the minimum number of pixels that must match for the region to be "found".
  2. Ahh, I completly missed that, thanks. It is missing in the export definition file, but can see it is in the documentation.
  3. Thanks for the quick reply. 1) I hope someone else would need this to, it is definitely a feature I miss often. 2) I might have overlooked how to do it. ApplyFilterOnSnapShot with 0xff0000 will keep all the read of all pixels, not just the ones with the exact color 0xff0000. ie 0xffffff and 0xff4242 would both become 0xff0000. For debugging it would be useful to have a filter that will keep only the pixels that match exactly 0xff0000, so I can see graphically which pixels of a snapshot it considerd. Again I might have missed it, if it is already possible it would be great? 3) It's true, that if its complicated to use, it would not be used. One possible way could be to do it similar to color lists: void AddSearchRect(left, top, right, bottom, count, color) - where the coordinates is relative to the point one want to return. Then if someone would search for the france flag, it would be something like: AddSearchRect(-15, -10, -5, 10, count, 0x0000ff); AddSearchRect(-5, -10, 5, 10, count, 0xffffff); AddSearchRect(5, -10, 15, 10, count, 0xff0000); Search(&X, &Y) The found X,Y would then be in the middle of the white stripe. But it might be to complicated to see actual usage. Thanks again for a great library
  4. I found this library my coincidence since I don't use AutoIt, but must say it's really great, thank you very much or the effort youøve put into this. I use it with C#, and noticed someone else was asking how to do it. It is fairly easy to wrap the dll using pinvoke like this: using System.Runtime.InteropServices; [DllImport("FastFind.dll")] public static extern void SetHWnd(IntPtr NewWindowHandle, bool bClientArea); I also have a few suggestions for additional features, which I would find useful, in (my ) prioritized order: 1) Being able to search non-quadratic areas. Ie. to search for a 10 by 20 square, still using the same search options as normal. 2) Additional debug tools: -Another filter option, which will set all pixels that do not match a color (or color list and shade), to black (or even to a color you specify, in case you are looking for black), This would be useful in debugging, as I could see exactly which pixels is searched for. -Being able to draw the regions found on snapshots, similar to how live debug works. also in general being able to easily draw a square on a snapshot, which I can then save to file would be useful. 3) Even more advanced search: Being able to specify regions within the search rect, that should all match. Ie. search for a 10x10 rect, where the upper half has a min of 10 white pixels, and lower left corner min 10 red pixels. Also, by any chance is this project open source? I have tried searching for it, but didn't find anything. I wouldn't mind contributing whenever I have some spare time.
×
×
  • Create New...