When I was doing it, HKN's SendWin command was what I used, SendWinX also worked.