0

I am trying to switch windows at regular intervals automatically between Internet Explorer and a Powerpoint presentation.

I did actually cobble something together but accidently deleted it a while back and now for the life of me can't recreate it.

Can someone please point me in the right direction?

Vika Marquez
  • 353
  • 1
  • 3
  • 12
Legs
  • 41
  • 1
  • 11

2 Answers2

0

Maybe you could try to send a keypress to the keyboard like ALT + TAB?

Hava a look at this question Press Keyboard keys using a batch file

Community
  • 1
  • 1
KarmaEDV
  • 1,631
  • 16
  • 27
  • I did start off looking at SendKeys however the machine may have other programs running and I only need to switch between two of them. There is a command to open a window if you define the display name. I ran this twice with a delay and a loop but I can't remember of find the command. – Legs Feb 02 '16 at 08:25
0
Create a start.bat Windows Batch File

cd "Path to Directory"
start alttab.vbs

Alt Tab script in VB - Save the file in a directory and replace the path in the batch file

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^%{TAB}"