Shell script: find iconized programs , if found , activate it

view full story

http://unix.stackexchange.com – Stardict uses a tray icon , also allows multiple instance of itself , but sadly , i don't use a panel , so no notification area available. But when I hit on close , it minimized to tray , is there a way to find its "Window" ? if the WId was found , activate this window by sending some X message ? I'm not sure if it's possible. (for hidden windows) Thanks , and please provide a simple bash script (HowTos)