Popular Python recipes tagged "meta:requires=win32event"http://code.activestate.com/recipes/langs/python/tags/meta:requires=win32event/2014-11-20T11:59:46-08:00ActiveState Code RecipesCreating a single instance application (Python)
2014-11-20T11:59:46-08:00Matteo Bertinihttp://code.activestate.com/recipes/users/4191156/http://code.activestate.com/recipes/578966-creating-a-single-instance-application/
<p style="color: grey">
Python
recipe 578966
by <a href="/recipes/users/4191156/">Matteo Bertini</a>
(<a href="/recipes/tags/threads/">threads</a>).
</p>
<p>Sometimes it is necessary to ensure that only one instance of application is running. This quite simple solution uses mutex to achieve this, and will run only on Windows platform.</p>
Win Services helper (Python)
2014-09-06T10:35:54-07:00Louis RIVIEREhttp://code.activestate.com/recipes/users/4035877/http://code.activestate.com/recipes/551780-win-services-helper/
<p style="color: grey">
Python
recipe 551780
by <a href="/recipes/users/4035877/">Louis RIVIERE</a>
(<a href="/recipes/tags/services/">services</a>, <a href="/recipes/tags/system/">system</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 4.
</p>
<p>A simple way to implement Windows Service.</p>
how to create a windows service in python (Python)
2008-08-26T01:32:47-07:00alexander bakerhttp://code.activestate.com/recipes/users/4166679/http://code.activestate.com/recipes/576451-how-to-create-a-windows-service-in-python/
<p style="color: grey">
Python
recipe 576451
by <a href="/recipes/users/4166679/">alexander baker</a>
.
</p>
<p>The following code snippet shows you have to create a windows service from a python script. The most important thing here is the username and password, if you ignore supplying these the server will never start and you will get a message saying that the service has not responded in time, this is a red herring. The default account that the pythonservice wrapper uses is not permissioned to run the service. </p>
Creating a single instance application (Python)
2006-02-22T06:37:05-08:00Dragan Jovelichttp://code.activestate.com/recipes/users/2787616/http://code.activestate.com/recipes/474070-creating-a-single-instance-application/
<p style="color: grey">
Python
recipe 474070
by <a href="/recipes/users/2787616/">Dragan Jovelic</a>
(<a href="/recipes/tags/threads/">threads</a>).
</p>
<p>Sometimes it is necessary to ensure that only one instance of application is running. This quite simple solution uses mutex to achieve this, and will run only on Windows platform.</p>
Watching a directory under win32 (Python)
2002-10-11T03:34:13-07:00Tim Goldenhttp://code.activestate.com/recipes/users/727566/http://code.activestate.com/recipes/156178-watching-a-directory-under-win32/
<p style="color: grey">
Python
recipe 156178
by <a href="/recipes/users/727566/">Tim Golden</a>
.
</p>
<p>Watch a folder for files added / deleted within it. Files renamed are listed as both added and deleted in the same notification. Changes to the folder itself are not picked up, but could be.</p>
Determining if another instance of a script already running in MSW (Python)
2001-08-26T17:41:13-07:00Bill Bellhttp://code.activestate.com/recipes/users/98151/http://code.activestate.com/recipes/67663-determining-if-another-instance-of-a-script-alread/
<p style="color: grey">
Python
recipe 67663
by <a href="/recipes/users/98151/">Bill Bell</a>
.
</p>
<p>A script can use this code to determine whether another instance of itself is already in execution. 32-bit MSW only.</p>