TroisVerites Posted November 29, 2012 Share Posted November 29, 2012 I would like to know when I must use TPA functions ? 1 ) if I need to check one pixel in a area , I use Color Functions. 2) if I need to check more pixels at the same time ( with no area capture ) , what is the best ? 3) Do Scar use TPA functions in Color Functions ? 4) Any advices ? Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted November 29, 2012 Share Posted November 29, 2012 Lets first decribe what a TPA is. TPA stands for TPoint Array, or an array of TPoints. TPAs are good for storing multiple things. I use them for gathering multiple points off the screen that contain a certain color. then i group the points within the TPA and then find the largest group and find the middle of that group which will be the place on the screen that has the most of that color. This is just one way to use TPA's Quote Link to comment Share on other sites More sharing options...
LordJashin Posted November 29, 2012 Share Posted November 29, 2012 My TPA example in OSI - https://github.com/OSI1/OSI1/blob/master/Divi/Testing/TPAFunctions.scar Just make sure you have OSI include installed (File->Includes Manager) then run that file There is lots you can do with TPA's and ATPA's. You can sort points out if they are not within a certain distance of another point in the array. etc. Quote Link to comment Share on other sites More sharing options...