Connect command line in code via browser link

I have a problem that drives me crazy. I was able to successfully connect the teamviewer session from the uri browser to my required remote resource. I achieve this by using the following uri command in the address bar of the browser (this is actually a click of a button in html):

  • teamviewer8: // RemoteControl connectcc = 123456789

Although this is ideal on demand, it presents a problem that I need to solve.

Problem

If the connection is not already open, the Teamviewer session is initiated and a window appears on my second monitor as needed. Things are good. However, if the session is already running, and I initiate a subsequent request to the same uri, a new session is generated, and I have several duplicate session windows. This is a resource that is hungry in the long run and undesirable in practice.

My perfect solution

Ideally, I would like the process to work so that a new session is called if it does not already have a given identifier. If a previous session with this identifier is running, I would like to find a way to draw attention to it, instead of having a new TeamViewer new session.

What i already know

, , teamviewer , id. teamviewer , - , , ( DB).

, , , , , .

uri, Teamviewer . , , ?

...

[edit] - - , asp.net mvc . , , http- / , teamviewer uniq.

[]

- . - , teamviewer, i, e, arb://remotecontrol? Connectcc = 123456789. . , , , Process.Start(), teamviewer, . , .

:

, - , , .

+4

Source: https://habr.com/ru/post/1530429/


All Articles