I think everyone above is missing a point a little. You have to remember that when you login via Login Agent, VM is being opened in "headless" mode, meaning screen is not being rendered. Therefore you cannot use Mouse Click, Send Keys, check active windows, activate etc, because those do not exist.
In order to fix this, you would need to re-write the robot so it does not rely on any of the above.