E
E
Evgeny Ivanov2018-11-04 00:30:46
Delphi
Evgeny Ivanov, 2018-11-04 00:30:46

How to launch "hidden" applications?

My program requires the work of three third-party programs.
I am writing a launcher on RAD Studio 10.1 Berlin under Windows 7 (32 and 64).
The idea is this:
The launcher launches 3rd party programs. And then it launches my main program.
The problem is that the user should not see the windows of third-party programs. Even just because if he closes the window, then my main program will crash. she needs the work of these 3rd party programs.
What can be done here?
1) The first thing that comes to mind is to hide the windows of these programs. How can I do that?
Links, examples? You need to hide both "out of sight" and from the taskbar.
The option is so-so, not very correct, but still solves the problem.
2) Or somehow embed these programs in my launcher? According to the principle - you see my program, but in fact everything you need is launched.
3) Or maybe there is a way to run any programs without visible windows initially? Like a process, for example. What is that kind?
Here is such a task. Maybe there are other options?
How to launch "hidden" applications?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2018-11-04
@logpol32

a.vbs file

Set WshShell = CreateObject("WScript.Shell") 
WshShell.Run "notepad.exe", 0
Set WshShell = Nothing

run wscript //nologo a.vbs
or do it from your program, launching applications is the simplest operation in any language.
ps You can also use the win32 libraries (which can also be connected from Delphi) to find the desired window by title or identifier and hide it by specifying new parameters. To read docks, for a long time it was, I will not remember already.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question