Dynamic icons on toolbar


I have a toolbar with several icons for my networked PCs, all three button. One opens RDP another sends a magic packet another shutdown. I would like the icon to change depending on which button ive pressed. I have tried with @iconp, but cant get it to work(other than it changes regardless of whether i press the button or not#(not using set)) The toolbar is floating.

thx 4 any pointers