SOLUTION!

Everything works perfectly if I use SendWinX instead of SendWin.