V
V
vovkaooo12019-09-03 12:46:45
Windows Server
vovkaooo1, 2019-09-03 12:46:45

How to make a VPS so that when the user disconnects from it, the visual component continues to work?

There was such a problem. There is a program that interacts with the desktop, and specifically with the visual component. She constantly checks certain pixels for a particular color in order to understand what further actions to take. Also, all transition operations occur using pseudo clicks. That is, in short, the program imitates the user's actions and analyzes what is happening on the screen. All this was supposed to work on my desktop computer, but since it turned out that I would often need it, it was decided to transfer the program to VPS. I’ll add right away that it’s impossible to make a program so that it works without interacting with a visual interface. Maybe I don't know how to do it, but that's another story.
Therefore the questions are:

  1. How to achieve that on the server, when the user is disconnected, everything continues to work as if it is connected.
    (Optional) (Just direct if you know where)
  2. Is it possible to somehow programmatically receive this video stream that we receive when we connect to the server?
  3. Maybe you can write an add-on for the program so that it would receive this video. That is, as I understand it (I have never worked with VPS). VPS, when the user disconnects, stops the video .., which allows you to interact with the windows interface and continues to function normally with programs that do not need this interface.

What is used:
  1. Yandex.Cloud
  2. Platform - Intel Cascade Lake
  3. 4 cores, 4GB RAM
  4. Windows Server 2016
  5. No settings or policies set

I will add. Keeping the connection persistent is not an option because the connection can always fail.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
SagePtr, 2019-09-03
@SagePtr

If the program imitates user actions on the web, then take a look at tools such as PhantomJS and Selenium. They do not require a real desktop, they can work with a virtual framebuffer.

P
Puma Thailand, 2019-09-03
@opium

If you approach stupidly, then there are two options
. On the vps, understand the virtual machine and already run the program in it and everything will work
If you approach stupidly

A
akelsey, 2019-09-03
@akelsey

Add another 4GB to the server. Raise Hyper-V - raise the server inside it, run your software. Rejoice.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question