How to differentiate between event triggered by user interaction and code ?

Printable View