How to build a SystemTray app for Windows?

Zakiullah Khan picture Zakiullah Khan · Feb 29, 2012 · Viewed 41.3k times · Source

I usually work on a Linux system, but I have a situation where I need to write a client app which would run on windows as a serivce. Can someone help me or direct to, on how to build a MenuBar app ( for example like dropbox) for windows environment, which gets started on OS startup and the icon sits in the TaskBar and on clicking the app icon presents a menu.

My scripting language is python. Thanks.

Answer

SpliFF picture SpliFF · Feb 29, 2012

You do this using the pywin32 (Python for Windows Extensions) module.

Example Code for Python 2

Similar Question

To make it run at startup you could mess around with services but it's actually much easier to install a link to the exe in the users "Startup Folder".

Windows 7 and Vista

c:\Users\[username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Windows XP

c:\Documents and Settings\[username]\Start Menu\Programs\Startup