P
P
PavelBule2015-09-28 10:39:16
C++ / C#
PavelBule, 2015-09-28 10:39:16

How to create program interaction?

how to bind a program so that it starts in a place with another. For example: when launching one of the Microsoft office applications, my program was automatically registered

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2015-09-28
@saboteur_kiev

You can set up file associations so that they are not opened by the office, but by your program. And your program, having already started, accordingly opened the desired office product and passed the file to it for opening.
You can set up shortcuts so that your program starts instead of office, which then launches the desired office product.
The remaining options are process monitoring, but for this your program must hang in memory.

A
Alexander Slyzhuk, 2015-09-28
@SLYzhuk

You can try to run a script to check if there is a running program in memory: if it is running, then do the following (for example, run the program).

T
Tlito, 2015-09-30
@tlito

there is a library for system calls
in linux called stdlib.h, and on windows stdafx.h it seems
there is a function
system("bash code");
in place of the bash code, you can insert the code for calls to the second program. it might work.
and if not a programming solution, then the label should contain two calls
to techsolve.ru/kak-zapustit-neskolko-prilozhenij-odn...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question