Report question

Question: How to detect if a click() is a mouse click or triggered by some code?