Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

switch between programs 1

Status
Not open for further replies.

boxster8

IS-IT--Management
Nov 29, 2006
66
US
Hi All!
Question, please. I have a computer (XP SP2) at a production facility that has two programs on it. It is for the users to see what it going on in the plant by looking at a big LCD screen. I need it to "flip" between each program, say every two minutes. Any ideas? Maybe a good VBScript? I don't know much about scripting, but can learn! Grin...

Best Regards,
Don
 
Well, if those are the only two applications running on the computer you could do an infinite loop of alt tabbing between them.

Code:
Dim WshShell
set WshShell = CreateObject("wscript.Shell")

Do
  WshShell.SendKeys "%{TAB}"
  WScript.Sleep 3000
Loop

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Mark,

Thanks very much!

Best Regards,
Don
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top