Neat proggy Brian! I may have a use for it in the future. BTW, as I have made some simple autohotkey scripts before, is there any way you could post the source for it? Some people may want to make mods to it for their own uses (possibly other than MAME based).
This will kill just about anything. Notepad,mame what ever just add the process name in the ini.
Here is the code
#SingleInstance force
#persistent
#InstallKeybdHook
#InstallMouseHook
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
IniRead, wait, Watcher.ini, timer, time
IniRead, EMU1, Watcher.ini, emulator1, key
SetTimer, EMU1, 1000, 0
EMU1:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU1%.exe
IniRead, EMU2, Watcher.ini, emulator2, key
SetTimer, EMU2, 1000, 0
EMU2:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU2%.exe
IniRead, EMU3, Watcher.ini, emulator3, key
SetTimer, EMU3, 1000, 0
EMU3:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU3%.exe
IniRead, EMU4, Watcher.ini, emulator4, key
SetTimer, EMU4, 1000, 0
EMU4:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU4%.exe
IniRead, EMU5, Watcher.ini, emulator5, key
SetTimer, EMU5, 1000, 0
EMU5:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU5%.exe
IniRead, EMU6, Watcher.ini, emulator6, key
SetTimer, EMU6, 1000, 0
EMU6:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU6%.exe
IniRead, EMU7, Watcher.ini, emulator7, key
SetTimer, EMU7, 1000, 0
EMU7:
TimeIdle := A_TimeIdlePhysical // 60000
If TimeIdle >= %wait%
Process, Close, %EMU7%.exe
------
Contents of watcher.ini
;Configure Timer in minute intervals
;key is the process name. Do not add the file extention.. Eg.. EXE
[timer]
time=1
[Emulator1]
Key=mame
[Emulator2]
Key=zinc
[Emulator3]
Key=Value
[Emulator4]
Key=Value
[Emulator5]
Key=Value
[Emulator6]
Key=Value
[Emulator7]
Key=Value