Is there a way for a script (I use AutoIt, but batch or VB is ok) to read what the current desktop number is? Registry location, environment variable, command-line return code?
Why I need it:
- I have a monitoring program that watches what my children (and guests) are doing on the network/internet. Unfortunately, it runs in full-screen mode, and likes to pop itself to the front all the time. It is something a friend is writing, and I am his live test. He keeps promising to fix it, but is stuck on other (paying) projects for now. I get around this using a rule to keep it on a particular desktop.
- I have a special transparent screen-saver the same friend made for me that lets me lock my computer, but show through whatever would be showing on my desktop.
- I am writing an AutoIt script that will watch for the screen saver to kick in, and switch the current Dexpot desktop between the one with the network usage monitor and another screen that shows a web page with things like weather and a family calendar.
The problem is that I want the script to switch the current desktop back to where-ever I was before the screen-saver script kicked in. Unfortunately, the -back switch won't do it, because Dexpot will have switched desktops multiple times after the screen-saver script kicked in.