A
A
Artemy2018-05-01 18:57:11
System administration
Artemy, 2018-05-01 18:57:11

How to create a pop-up notification in Windows when a program starts?

Is it possible to make it so that when I launch a program shortcut, I first receive a notification, and then the program itself starts?
Example:

  1. 2xLMB on the program label
  2. A notification appeared in the center of the screen
  3. Clicked on ok inside the notification window
  4. Program launch
UPD
Играю в War Thunder. Багов там немерянно, ну я и держу DVR от Nvidia на случай баг-репорта.
Nvidia не предусмотрела автоматическое включение записи, а сам включать иногда забываю. В настройках есть пункт "Запретить съёмку рабочего стола", но тогда ошибки после вылета могут не попасть на запись.
Вот и хочу себе подобное уведомление сделать, если это возможно.
Untitled-4.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Semyon Novikov, 2018-05-01
@semennovikov123

The question is not entirely clear. What do you mean by Notification in the center of the screen? What are you writing the program in? If in c# , then you can make the form in the form of a notification, well, or a MessageBox . And there already make the transition to another form.

A
Alexander, 2018-05-01
@NeiroNx

You can do this in VBScript.

MsgBox "Ты точно запустил DVR?", vbQuestion, "Проверка"
WScript.CreateObject( "WScript.Shell" ).Run(WScript.Arguments(0))

contents in the file C:\test.vbs
and add "C:\test.vbs" (without quotes and with a space) to the game shortcut before the game executable.
Thus, the script will first display a window, wait for ok to be pressed, and then launch the game itself
. Although it’s easier to start the recording from the script right away, probably)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question