Solved

WIndows 7 - is it possible to switch between program automatically?

Posted on 2014-09-12
3
1,190 Views
Last Modified: 2014-09-17
hi,

Windows 7 Pro
Fully Patched.

Is it possible, by script or other means, to have the applications automatically rotate?

The aim is to have my 3 or 4 main reporting programs eg helpdesk, RMM, sales, etc to spend 1 minute on the screen and then automatically switch to the next. The actual window of the program does not need to change.

Thanks
Gareth
0
Comment
Question by:gareth629
3 Comments
 
LVL 5

Assisted Solution

by:SemperPhi
SemperPhi earned 50 total points
ID: 40320508
if you have all of them running you could find a key macro program that would execute ALT + TAB for you on a timed interval...

AutoHotKey and several others are out there...
0
 

Assisted Solution

by:Andrew Foster
Andrew Foster earned 50 total points
ID: 40320618
You can use a macro program, or write your own application to find the application's windows and make them active.
0
 
LVL 53

Accepted Solution

by:
Joe Winograd, EE MVE earned 400 total points
ID: 40321142
Hi Gareth,

Here's a related EE question that I participated in recently:
http://www.experts-exchange.com/Programming/Misc/Q_28486055.html

In that case, the asker wanted to switch two programs every 30 seconds, but the answer is similar for four programs every 60 seconds. As stated in that question, the solution uses the excellent (and free!) programming language called AutoHotkey. Here's an EE article that shows where/how to download and install it:
http://www.experts-exchange.com/Web_Development/Document_Imaging/A_13315-How-to-Combine-Merge-PDF-Files-in-Many-Subfolders.html

The article is about a different topic — you may safely ignore most of it — use it just for the sections on downloading and installing AutoHotkey.

Here's the revised code for automatically switching four programs, leaving each one up for one minute (note that a semicolon begins a comment in the code):
; there are three choices for the SetTitleMatchMode value:
; 1: A window's title must start with the specified WinTitle to be a match.
; 2: A window's title can contain WinTitle anywhere inside it to be a match.
; 3: A window's title must exactly match WinTitle to be a match.
; the code below has 2 (CONTAINS) - change to whatever you want.
SetTitleMatchMode,2
Loop
{
  WinActivate,ProgramTitle1 ; title is case sensitive
  Sleep,60000 ; wait 60 seconds (time is specified in milliseconds)
  WinActivate,ProgramTitle2 ; title is case sensitive
  Sleep,60000 ; wait 60 seconds (time is specified in milliseconds)
  WinActivate,ProgramTitle3 ; title is case sensitive
  Sleep,60000 ; wait 60 seconds (time is specified in milliseconds)
  WinActivate,ProgramTitle3 ; title is case sensitive
  Sleep,60000 ; wait 60 seconds (time is specified in milliseconds)
}

Open in new window

This will loop forever. If you want to stop the script, simply right-click on the AutoHotkey icon in the system tray/notification area (blue arrow below) and select Exit (red arrow below):

Exit AutoHotkey script
That should do it for you. If you have any problems, let me know and I'll try to troubleshoot it with you, but it should work straightaway. Regards, Joe
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question