I have 2 virtual desktops on win 10
On my first virtual desktop I have a google chrome window open for which I have the exact "wintitle" (assume "XYZ - Google Chrome")
On my second virtual desktop I have a notepad open, again I know the exact wintitle for it.(assume "Notepad mytext"
And assume I ran this script
Code: Select all
winactivate, XYZ - Google Chrome
sleep 500 ; for good measure
mousemove 200,200 ;soemwhere in the chrome window
sleep 200
mouseclick, L
sleep 100
send ^a
sleep 100
send ^c
winactivate, Notepad mytext
sleep 500
mousemove 200,200
sleep 200
mouseclick, L
sleep 100
send ^v
I think the purpose of the script is pretty clear. Will this try to switch between two virtual desktops every time it runs into winactivate or will it give some sort of error or do nothing because the other window referenced is not found ?
More important question is, how do you handle switching among several virtual desktops other than simulating mouse clicks on the toolbar virtual desktops icon?