gpt4 book ai didi

google-chrome - 我可以从我的网页启动 VNC Viewer for Google Chrome webapp 吗?

转载 作者:行者123 更新时间:2023-12-03 18:38:39 26 4
gpt4 key购买 nike

我正在构建一个 Web 服务,为远程机器提供 VNC 连接。目前,我正在使用一个名为 novnc 的项目将 VNC 嵌入到我的网页元素中。但是,它非常慢,尤其是网络浏览器、eclipse 等。
但是,当我尝试使用 novnc 发布的适用于 Google Chrome webapp 的 VNC 查看器时,它似乎非常快。这可能是因为它运行 native ( native VNC 客户端也非常活泼)。
我想知道是否可以让我的用户安装 Real VNC webapp,然后使用我指定的参数(主机、端口等)从我的网页调用它?
基本上,我的网页负责管理这些虚拟机(保存、创建、克隆等),我希望在下面快速实现 VNC,我可以从浏览器内部(从我的网页)调用它。从我研究过的不同应用程序来看,这个 Web 应用程序似乎是最快的,但我不知道是否/如何使用给定的参数调用它。

最佳答案

这段代码来自 http://rogierg.blogspot.com/2007/03/run-vnc-and-rdp-from-hyperlinks.html可能对你有帮助。

edit the following text to point to your VNC and save as C:\Windows\VNC.js:


 var destination=(WScript.Arguments(0))
var search='vnc://'
//Modify the path to VNC Viewer!
var vncexe='D:\\Apps\\VNC\\vncviewer.exe'
//WScript.Echo(destination)
destination=destination.replace(search, '')
destination=destination.replace('/', '')
var ws = new ActiveXObject("WScript.Shell")
//WScript.Echo(vncexe + " " + destination)
ws.Exec(vncexe + " " + destination)

Save the next piece of text as VNC.reg and doubleclick:


 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\vnc]
@="URL:VNC Connection"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\vnc\DefaultIcon]
@="C:\\WINDOWS\\System32\\mstsc.exe"
[HKEY_CLASSES_ROOT\vnc\shell]
[HKEY_CLASSES_ROOT\vnc\shell\open]
[HKEY_CLASSES_ROOT\vnc\shell\open\command]
@="wscript.exe C:\\WINDOWS\\vnc.js %1"

关于google-chrome - 我可以从我的网页启动 VNC Viewer for Google Chrome webapp 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21614377/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com