Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a program to run from the system tray

I would like to create a program to run from the bottom right system tray of Windows.

But I don't know where to start from?

Can someone tell \ show me where to look and examples or what commands to use \ research ?

like image 425
Pavle Stojanovic Avatar asked Aug 07 '13 09:08

Pavle Stojanovic


People also ask

How do I run a program in system tray?

To interact with a program in the system tray, select an icon with the mouse and double-click or right-click the icon.

How do I create a system tray?

Step 1 − Go to the SETTINGS window and choose System. Step 2 − In the SYSTEM window, select Notifications & actions. Here you can select the option that reads “Select which icons appear on the taskbar”.

How do I create a system tray application in Python?

To create a System Tray icon of a tkinter application, we can use pystray module in Python. It has many inbuilt functions and methods that can be used to configure the system tray icon of the application. To install pystray in your machine, you can type "pip install pystray" command in your shell or command prompt.


1 Answers

You can also do:

Sub ToggleHide()
    If Me.WindowState = FormWindowState.Normal Then
        Me.ShowInTaskbar = False
        Me.WindowState = FormWindowState.Minimized
    Else
        Me.ShowInTaskbar = True
        Me.WindowState = FormWindowState.Normal
    End If
End Sub
like image 181
Rob Avatar answered Sep 29 '22 11:09

Rob