Code:
detect_function = 'ControlVisible("_NotificationParty")'
detect_function = 'ControlVisible("_NotificationFcJoin")'
detect_function = 'ControlVisible("_NotificationTelepo")'
detect_function = 'ControlVisible("Trade")'
I think for what you're looking for with the gesturing, I'd have to add another detector to implement some chat code checking.