Geeks With Blogs

News Clicky Web Analytics

web stats View David Caddick ('s profile on LinkedIn

Search this Site!

Locations of visitors to this page
View My Stats eXTReMe Tracker
This posting is provided "AS IS" with no warranties, and confers no rights. The opinions expressed within are my own and should not be attributed to any other Individual, Company or the one I work for. I just happen to be a classic techie who is passionate about getting things to work as they should do (and are sometimes advertised and marketed as being able to?) and when I can I drop notes here to help others falling in to the same traps that I have fallen in to. If this has helped then please pass it on - if you feel that I have commented in error or disagree then please feel free to discuss with me either publically or privately? Cheers, Dave
Thin Clients, VDI and Linux integration from the front lines.... Raw and sometimes unedited notes based on my experiences with VMware, Thin Clients, Linux etc.

At a client's today and he was asking if I knew of anything that would let them switch between screens on a PC that was being projected on the wall. This currently shows the Incoming Call Stats and they were hoping to have it automatically switch between the two screens.

After a quick scout through Google I came up with and in this I'd found Activity.vbs:
   Const DELAY_MINUTES = 10
   Wscript.Sleep DELAY_MINUTES * 60000
   CreateObject("Wscript.Shell").SendKeys "+"
   Wscript.Sleep DELAY_MINUTES * 60000

So after a quick look at this, I realised the power of this SendKeys Function and I was away, changed the minutes in to seconds and pretty soon I had:

'Delay Is currently Set at 10 Seconds
'If it needs To be changed, just modify the
'figure at the End of the Next line


Wscript.Sleep DELAY_SECONDS * 1000
 CreateObject("Wscript.Shell").SendKeys "%{ESC}"
 Wscript.Sleep DELAY_SECONDS * 1000

'This will use the <ALT><ESC> key combination to switch
'through the active Windows every 10 Seconds.
'You can always try modifying the key combination to get
'other results?

Works like a treat!!  (Now if I can just figure out how to kill it cleanly......?)
                                   answers on the back of a postcard please?

Posted on Monday, October 10, 2005 12:56 PM IT Management , Real Cool Stuff , Microsoft Tips | Back to top

Comments on this post: Can I now call myself a coder? I think not! (Script Kiddie - more like)

# re: Can I now call myself a coder? I think not! (Script Kiddie - more like)
Requesting Gravatar...
leaving the coding to me mate!

Left by Dave Oliver on Oct 20, 2005 6:27 PM

Your comment:
 (will show your gravatar)

Copyright © Dave Caddick | Powered by: