Controlling application running on a virtual desktop
I need to run an application on a virtual desktop (let say desktop #2) and control it via another app running on the root desktop (desktop #1). That would include screen capture and mouse movements. So basically I capture the application window from desktop #2, scrape it and then click on buttons via my app on desktop #1. Anyway you got the idea.
Now my big question is: is that doable ? and if so what's the best language to do it ?
Thanks in advance