/KeepNOTRunning

Run something when the computer is idle

Primary LanguageVBAOtherNOASSERTION

KeepNOTRunning

Run something when the computer is idle

Let's say someone leaves Outlook running, thereby chewing up bandwidth by checking their POP account for new spam every 2 minutes, when the machine is idle (they haven't moved the mouse or pressed a key in awhile) then kill off outlook.exe

Let's say someone launches NBC video in their browser, then goes to lunch, when the machine is idle kill off iexplore.exe

Let's say someone logs onto a computer as administrator, then gets distracted and leaves, when the machine is idle logoff the user.

Tested on Windows 2000, XP, Server 2003, Vista, Server 2008, Windows 7

A scripted install/uninstall is not included with this software.

This program runs in the background; without any GUI, taskbar, or system tray icon.

Since this program is 32-bit it can only detect other 32-bit applications.

For the opposite of Keep NOT Running see Keep Running

Installation

  1. Ensure this prerequisite is installed: Microsoft Visual Basic 6.0 SP6 Run-time Components
  2. Extract the contents of the .zip file
  3. Modify keepnotrun.ini as indicated below
  4. Run keepnotrun.exe

.ini Settings

Do not use quotes around the full path, even if it contains spaces. Example: Detect=C:\Program Files\Microsoft Office\OFFICE11\outlook.exe

Launch= will be run if the detected program is still found running after the Idle= time. This could be set to the path of another .exe, a .bat file which could use pskill.exe to "End Task" on the detected program, or use logoff.exe to logoff the user who obviously isn't there anymore.

Usage

While Keep NOT Running works independently of any screen saver setting, it uses the same method Windows does to determine when the machine is idle and thereby launch a screen saver. If an application prevents the screen saver from starting (one example is Slingbox's SlingPlayer) then it's likely that Keep NOT Running also won't be able to detect when the machine is idle, and therefore Launch= may never run.

Example to turn off a PC when idle: https://drive.google.com/drive/folders/1PvlbSrecTMYvc46rFC8409JZf8u_oMKu?usp=sharing File: "KeepNotRun, idle shutdown.zip"

License

GPL does not allow you to link GPL-licensed components with other proprietary software (unless you publish as GPL too).

GPL does not allow you to modify the GPL code and make the changes proprietary, so you cannot use GPL code in your non-GPL projects.

If you wish to integrate this software into your commercial software package, or you are a corporate entity with more than 10 employees, then you should obtain a per-instance license, or a site-wide license, from http://jpelectron.com/purchase.html

For all other use cases please consider: Buy Me a Coffee at ko-fi.com

[End of Line]