Double-clicks the exe-file to do something.

Participant 21 Reputation points
2022-10-26T11:16:52.71+00:00

Hello. What would the code that does the following look like.

The user double-clicks the left mouse button on the exe-file, the console program starts, which launches the "Telegram" program and minimizes it to tray, the console program closes.

The user double-clicks the left mouse button on the exe-file,the console program starts the Skype program, the Skype program is displayed, the console program clicks the cross in the upper right corner of the Skype program, the console program closes.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,437 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,506 Reputation points
    2022-10-26T23:28:14.4+00:00

    See Notifications and the Notification Area. It says:

    The notification area has been known historically as the system tray or status area.

    The proper name is Notification Area. That article describes how a program can use the Notification Area. Note that the program must put itself there, it cannot be put there by some other program. Be sure to read the Guidelines in that article. I do not know what the "Telegram" program is but developers have often not followed those guidelines for the use of the Notification Area.

    0 comments No comments