Check if particular item in Inventory is clicked

Does this answer your question? As in getting Inventory Positon?