Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Retrieving class property/constant names from its value - Python
  2. import win32api, pythoncom
  3. from win32com.taskscheduler import taskscheduler
  4. ts = pythoncom.CoCreateInstance(taskscheduler.CLSID_CTaskScheduler,None,pythoncom.CLSCTX_INPROC_SERVER,taskscheduler.IID_ITaskScheduler)
  5. task = ts.Activate('TestJob')
  6. task.GetStatus()
  7.        
  8. [i[0] for i in taskscheduler.__dict__.items() if i[1] == 267008]