Sign in to follow this  
Followers 0
Luthien

Is it possible to run a script in a secondary virtual desktop?

3 posts in this topic

#1 ·  Posted (edited)

What I am trying to do is running a script in another virtual desktop.

The script might be doing mouse moving or typing or whatever and my goal is to be able to still use the computer in another virtual desktop without being disturbed by the script actions and without disturbing the script.

I tried a simple script which types several times "a b c" in notepad. Created 2 virtual desktops with nView manager and set the script running on the second one. Then I change to the 1st virtual desktop.

The problem is that the key events then are sent to the 1st destop instead of to the 2nd desktop as I intend.

Is there any way to tell the script to send the events to a different virtual desktop?

Here is the very simple test script :

WinWait("Sin título - Bloc de notas","")
If Not WinActive("Sin título - Bloc de notas","") Then WinActivate("Sin título - Bloc de notas","")
WinWaitActive("Sin título - Bloc de notas","")

For $a=1 to 10 Step 1
  Send("a{SPACE}b{SPACE}c{ENTER}a{SPACE}b{SPACE}c{ENTER}")
  Sleep(1000)
Next
Edited by Luthien

Share this post


Link to post
Share on other sites



I just tested in vmware and no keyboard input "escaped", maybe test it instead?


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I don't think he means virtual machines. I don't have an nVidia card, so I can't test the software. Can you send keys directly to the window you're working with?

Edited by spudw2k

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0