Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python is program running

import win32ui

def WindowExists(classname):
    try:
        win32ui.FindWindow(classname, None)
    except win32ui.error:
        return False
    else:
        return True

if WindowExists("DropboxTrayIcon"):
    print "Dropbox is running, sir."
else:
    print "Dropbox is running..... not."
Comment

PREVIOUS NEXT
Code Example
Python :: find frequency of numbers in list python 
Python :: python asyncio gather 
Python :: pyqt remove widget 
Python :: starting variable name with underscore python 
Python :: split at first occurrence python 
Python :: python package for confluence 
Python :: max value indices 
Python :: python callable type hint 
Python :: unique value python 
Python :: filter dict by list of keys python 
Python :: count occurrences of character in string python using dictionary 
Python :: transpose list 
Python :: python using enum module 
Python :: print string and variable python 
Python :: user information in python 
Python :: how to copy file from local to sftp using python 
Python :: python string cut 
Python :: validate ip address 
Python :: python file back to beginning 
Python :: glob python 
Python :: how split string in python by size 
Python :: select default option django form 
Python :: python repet x time 
Python :: blender show python version 
Python :: openpyxl read cell value 
Python :: pandas groupby largest value 
Python :: list in list python 
Python :: size array python 
Python :: decode vnc hash 
Python :: django fieldset 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =