I am trying to take an icon from a program and perform an action when the icon changes. Can anyone help my newbie self with this?

Thanks,
Tommy