-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationMonitor.txt
More file actions
42 lines (31 loc) · 1.46 KB
/
ApplicationMonitor.txt
File metadata and controls
42 lines (31 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ApplicationMonitor 0.2 by Alurcard2
This module keeps track of whether or not a certain application is running,
and provides events for when that application starts and ends.
Initalizing an application monitor:
------------------------------------------------------------------------------
You can initalize application monitors either in a RC,
*ApplicationMonitor (name) (application) [update frequency]
- name: Name which specifies which will identify evars (eg FireFox)
- application: application to monitor (eg firefox.exe)
- update frequency: (optional, default=200) how often, in milliseconds, to
check the application. min=10, max=2147483647
or with bang command,
!ApplicationMonitor (name) (application) [update frequency]
Each application monitor will maintain the following Evars:
------------------------------------------------------------------------------
(name)IsRunning
- true if the application is running, false if it is not running.
Each application monitor has the following events:
------------------------------------------------------------------------------
(name)OnEnd
- Fires when the monitored application ends (there are no more instances of it
running)
(name)OnStart
- Fires when the monitored application starts
Changelog:
------------------------------------------------------------------------------
v0.2 (2013-08-22)
- Support for unicode settings and program names.
- Fixed bang unregistration problem
v0.1 (2009-12-28)
- Initial Release.