Brotein
06-29-2014, 04:09 PM
I'm not sure how to do this. I would like to click on a specific area of an object, like in this picture.
http://i.imgur.com/rU172Su.png
I can't split the TPA because the object color is not all that unique and is already separated from it's surroundings(not nearly as clean as the picture :() Changing the split size will not guarantee the object's clickable area is in a TPA of it's own.
So let's say I create a TPoint called P and give it, which will return me 10,50.
p := middleTPA(ObATPA[i]);
Right now I edit the point with a static offset, but sometimes the colors change throwing off the y coordinate making it not hover where I want it to.
How can I grab the Y position of the top border of the TPA. So in the picture I want to grab the Y coordinate of the highest border, in this case it would be 0. This way I can edit my point's Y value to always click say 10 points below that point no matter what. This way I will only move the mouse onto the clickable area.
http://i.imgur.com/rU172Su.png
I can't split the TPA because the object color is not all that unique and is already separated from it's surroundings(not nearly as clean as the picture :() Changing the split size will not guarantee the object's clickable area is in a TPA of it's own.
So let's say I create a TPoint called P and give it, which will return me 10,50.
p := middleTPA(ObATPA[i]);
Right now I edit the point with a static offset, but sometimes the colors change throwing off the y coordinate making it not hover where I want it to.
How can I grab the Y position of the top border of the TPA. So in the picture I want to grab the Y coordinate of the highest border, in this case it would be 0. This way I can edit my point's Y value to always click say 10 points below that point no matter what. This way I will only move the mouse onto the clickable area.