Joseph Azzam - 2013-02-28

hi, I'm working on my computer on a software,
and I need a simple code that simply minimize a program to system,
exemple, when I execute the file, the mentioned softwares (like chrome.exe, forefox.exe,…..) will get minimized to tray.
I have rbtray on my computer, I just want the code to " right click the minimize button of specified software, the code can be in batch,vbs, java, c, exe anything. please help.
I'm a basic programmer, and I have no ideas how to do this
Thank you