-
Notifications
You must be signed in to change notification settings - Fork 0
/
MonitorState.py
30 lines (30 loc) · 1.01 KB
/
MonitorState.py
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
import time
import FolderLock
import IOprocessList
import platform
import InputCheck
import MainFrame
def RunMonitorState():
x = InputCheck.EnterTime()
if platform.system() is "Windows":
FolderLock.MakeFolderWindows()
while 1:
FolderLock.CheckIfFolderDeleted("ProcessMonitor.{645ff040-5081-101b-9f08-00aa002f954e}")
FolderLock.OpenFolder()
IOprocessList.WriteCsvFile()
FolderLock.CloseFolder()
try:
print "If you want to go back to the menu press CTRL + C"
time.sleep(x*60)
except KeyboardInterrupt:
MainFrame.RunMainMenu()
else:
FolderLock.MakeFolderLinux()
while 1:
FolderLock.CheckIfFolderDeleted("ProcessMonitor")
IOprocessList.WriteCsvFile()
try:
print "If you want to go back to the menu press CTRL + C"
time.sleep(x*60)
except KeyboardInterrupt:
MainFrame.RunMainMenu()