this will work, as the icon is the picture. Thanks
On Thu, 13 Jul 2017 20:26:51 +0000, Timothy Penner via 4D_Tech wrote: > Another approach instead of comparing MD5 hashes, could be to compare > the pictures directly using the EQUAL PICTURES command (created in > v13): > http://livedoc.4d.com/4Dv15.4/help/Command/en/page2647.html > > if(Equal Pictures (icon{1};pic1;$mask)) > // do something for Pic1 > End if > if(Equal Pictures (icon{1};pic2;$mask)) > // do something for Pic2 > End if > > However, if the Icon is not actually equal to the Picture then I > don’t think either MD5 nor Equal Pictures will help - both of these > approaches would depend on it being identical (not a lower resolution > icon). If the icon is lower resolution than the original then the > hash would be different, so the hash lookup would no longer work. > > -Tim > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

