Vnc自动登录器(VncManager)v1.3-多国语言绿色版-Release1-20190215
Vnc自动登录器 v1.3 (20190215)
By: ybmj@vip.163.com , https://www.cnblogs.com/ybmj/
下载地址:http://bbs.wuyou.net/forum.php?mod=viewthread&tid=413044&page=1&extra=#pid3737266
1、程序功能和使用环境介绍
2、程序操作方法介绍
3、登录信息文件VncManager.txt介绍
4、自动连接成功后解锁远程桌面功能
5、相关配置和多种语言支持介绍
6、免责申明
1、程序功能和使用环境介绍
(1)、程序功能
VNC最早是一套由英国剑桥大学AT&T实验室在2002年开发的轻量级计算机远程控制软件,由VNC Server、VNC Viewer两部分组成,VNC Server是被控制的服务器端,VncViewer是用于控制VNC Server的客户端程序。通过VncManager(Vnc Connection Manager,Vnc自动登录器),能够更为安全高效地使用VncViewer远程管理多台VNC Server。本程序是配合VncViewer使用的Vnc连接管理程序,在VncViewer功能的基础上实现了以下功能:
A、可以将连接记录保存在CSV文件中;
B、可以通过树状目录结构高效直观地管理连接记录,可以通过鼠标拖动、快捷键、菜单等方式对连接记录进行新建、编辑、复制、剪切、粘贴、移动、删除等操作;
C、可以实现连接记录的自动登录;
D、可以在自动连接成功后自动解锁远程桌面,这是仅通过VncViewer无法实现的。
(2)、程序使用环境要求
A、使用前请将RealVNC VncViewer 6.19.107 x86版的VncViewer.exe文件直接拷贝到本程序目录中。VncViewer x86版适用于x86、x64系统,VncViewer x64版只适用于x64系统;
B、请设置防火墙允许VncViewer.exe和VncManager.exe(仅扫描功能用)访问网络;
C、若要用到Vnc日志功能,需将logmessages.dll文件也拷贝到本程序目录中。
(3)、使用环境
该程序采用VS2017 WTL10 x86编译(Windows Template Library,http://wtl.sourceforge.net/ ),程序短小精悍、不依赖VC运行库、可独立运行。该程序的运行文件是VncManager.exe,一台电脑只能运行一个实例,再次运行只是将已运行的实例调到前台。该程序支持32位和64位的WinXp、Vista、Win7、Win8.x、Win10及相应Windows Server版等操作系统。
2、程序操作方法介绍
(1)、程序中的鼠标操作
* 双击某条记录将进行自动连接(等待6秒);
* 支持鼠标滚轮;
* 主菜单和右键菜单均可完成本程序的常规操作。记录窗格的右键菜单或单击工具栏的相应按钮可直接进行连接;
* 主菜单中的“配置”菜单可以选择程序的各项相关配置;
* 工具栏各个按钮的功能均有提示;
* 单击工具栏上的“显示隐藏树状目录”按钮、或“目录->显示树状目录”菜单可以显示隐藏目录树窗格,目录树窗格的右键菜单可完成目录树的一些常规操作;
* 单击工具栏上的“选择切换图标查看模式”按钮可以选择或切换记录窗格的查看模式;
* 记录窗格和目录树窗格都支持鼠标拖放功能,强烈建议使用该功能前备份VncManager.txt,以免异常损坏或丢失数据。直接鼠标拖放为移动,Ctrl+鼠标拖放为复制。拖放时状态栏有提示信息;
* 程序启动时,记录自动按记录名称升序排列。在记录窗格单击列表框某列表头,可以按该列进行记录排序,再次单击可以反向排序。
(2)、程序中的常用快捷键
* Enter :连接记录;
* Insert :新建记录;
* Ctrl+e :编辑记录;
* Ctrl+c :复制记录;
* Ctrl+x :剪切记录;
* Ctrl+v :粘贴记录;
* Delete :删除记录(在记录窗格),或删除子目录(在目录树窗格);
* F1 :显示程序信息;
* F2 :更名子目录;
* F3 :单条扫描(等待5秒,用于扫描网速较慢的记录);
* F5 :全部扫描(多线程同时扫描,每条记录等待5秒);
扫描过程中左下角状态栏会有提示,扫描完成后提示消失。扫描过程中建议不要新建、修改、删除、粘贴、剪切、排序记录,不然可能出现扫描结果错乱,其它功能可正常使用;
* F7 :新建子目录;
* Ctrl+- :隐藏窗口到系统托盘;
* Ctrl+= :显示窗口;
* 双击系统托盘图标可隐藏或显示窗口;
* 窗口大小可调整,支持最大化和还原;
* 支持Home、End、PageUp、PageDown等操作。
3、登录信息文件VncManager.txt介绍
(1)、VncManager.txt内容说明
登录信息存放在VncManager.txt文件中,若没有会自动创建,密码用RC4加密,请用户注意保管。VncManager.txt是遵循CSV格式的ANSI文本文件,所有字段内容都不能包含英文惊叹号“!”、英文逗号“,”、竖线分隔符“|”。
第一行为登录记录各字段的名称。每行存放一条记录,每条记录包含用7个英文逗号分隔的8个字段。
RecordName 记录名称是关键字段,支持中文记录名称,不能为空、不要有重名;
IP、Port、User、Password 分别是IP地址、端口、用户名、密码。IP地址不能为空,若端口为空程序将使用缺省端口5900;
UnlockDesktop 是在自动连接远程PC成功后,若远程桌面已登录锁定、且焦点位于密码输入框,可用连接Vnc的密码解锁远程桌面、或先锁定再解锁远程桌面。具体配置参见后面的介绍;
Memory 是备注字段;
TreePath 是目录路径字段,由若干英文惊叹号“!”(目录分隔符)分隔的字符串构成,支持中文目录名,如根目录下DirA子目录下的DirB子目录:!DirA!DirB 。
(2)、格式符合要求的VncManager.txt文件示范
RecordName,IP,Port,User,Password,UnlockDesktop,Memory,TreePath
sample01,192.168.0.6,5900,user01,,,,!
sample02,192.168.0.8,5900,user02,,,,!DirA!DirB
sample03,192.168.0.9,5900,user03,,,,!DirC!DirD
(3)、可以用记事本、UltraEdit、Excel等编制VncManager.txt
VncManager.txt可以用记事本、UltraEdit、Excel等编制。也可将已有VncManager.txt导入Excel处理,具体方法是:
A、启动Excel,选择菜单“数据->导入外部数据->导入数据”,选择VncManager.txt文件;
B、文本导入向导第1步,直接单击“下一步”;
C、第2步必须选中“逗号”分隔符,再单击“下一步”;
D、第3步必须将所有8列都设置为文本,依次选中下面数据预览里的各列,再选择右上面列数据格式里的“文本”。全部设置好后,再单击“完成”、“确定”即可成功导入;
E、处理完后须保存为CSV格式文件,再更名为VncManager.txt便可使用。
4、自动连接成功后解锁远程桌面功能
(1)、解锁远程桌面功能简介
当自动连接远程PC成功后,若远程桌面已登录锁定、且焦点位于密码输入框,可用连接Vnc的密码解锁远程桌面、或先锁定再解锁远程桌面。
要正常使用这一功能,必须满足以下条件:
A、成功连接的远程PC已经登录;
B、锁定远程桌面的用户密码与连接Vnc的密码一致;
C、远程桌面的焦点位于密码输入框。
(2)、可能存在的安全隐患
在下面情况,可能出现明文密码、存在安全隐患:
A、解锁前远程桌面并未锁定;
B、解锁前远程桌面焦点又正好位于文本编辑框中。
(3)、相关配置
用户可以为每条记录单独配置解锁远程桌面功能,相关配置信息保存在每条记录的UnlockDesktop字段中。慎重起见,默认并未启用该功能。用户可以根据实际情况,单独为每条记录选择不使用(该字段为空)、或者“UnlockDesktop”、或者“LockThenUnlock”。
该字段为空,也就是不使用该功能,便不会出现明文密码。
“UnlockDesktop”是指直接解锁远程桌面,但可能出现明文密码。
“LockThenUnlock”是指若解锁前远程桌面处于未锁定状态、可以先锁定远程桌面再进行解锁,这样可以尽量避免出现明文密码。
5、相关配置和多种语言支持介绍
(1)、配置文件VncManager.ini
主菜单中的“配置”菜单可以选择程序的各项相关配置。程序的各项配置都保存在VncManager.ini配置文件中,若不存在程序会自动创建。若由于配置混乱、异常关闭等原因导致程序运行后无法显示主窗口,可以先备份然后删除VncManager.ini文件,程序便可正常运行。
(2)、多种语言支持
本程序使用INI文件实现多种语言支持,每种语言信息用一个扩展名为lng的INI格式文件存放。语言文件可以使用Unicode或ANSI格式,一般建议使用Unicode格式。这种方式具有更多扩展性,用户可以非常简单方便地添加自己的语言文件。
本程序的默认语言是简体中文,另外提供英文语言文件English.lng。本程序启动时若没有外部语言文件,将使用内置的默认语言(简体中文)。若本程序目录下有*.lng的外部语言,程序启动后便会自动在“关于->语言”菜单下列出外部语言(以语言文件的文件名命名)。用户选择某种外部语言便可以动态切换到新语言界面,无需重新启动程序,用户的语言选择将自动保存到VncManager.ini文件中,关闭程序后下次启动也会自动使用用户选择的新语言界面。
用户可按以下方法编制修改自己的语言文件:
A、参照English.lng编制修改好自己的语言文件,比如French.lng;
B、将已编制好的语言文件拷贝到本程序目录下;
C、重新启动程序后便会自动在“关于->语言”菜单下列出用户添加的新语言French;
D、选择该语言便可以动态切换到新语言界面,无需重新启动程序,关闭程序后下次启动也会自动使用用户选择的新语言界面。
编制语言文件注意:
A、语言文件中间部分不能有空行,空行就意味文件结束,空行之后就无法查找翻译。若需要空行标识分隔,可以在空行前加英文分号“;”,也即注释行;
B、语言文件中的字符串,若需要前导和后导空格,可以将字符串用英文双引号或英文单引号包围起来。不需要空格的就无需加引号。
本程序的多种语言支持功能参照网友Yonsm提供的方式实现,有兴趣的用户可以访问网站 http://yonsm.net/ini-language-engine/。
(3)、启用VncViewer帮助
在本程序中,若要启用菜单项“帮助->VncViewer帮助”,需要将VncViewer的PDF帮助文档拷贝为本程序目录中的VncViewer.pdf,并且你的系统需要安装PDF阅读工具。
6、免责申明
用户可自行斟酌选用该程序,若转载请注明出处。对一切后果,作者不承担任何责任!
========================================================================================
VncManager v1.3 (20190215)
By: ybmj@vip.163.com , https://www.cnblogs.com/ybmj/
1. Introduction to program functions and usage environment
2. Program operation method introduction
3. Introduction of login information file VncManager.txt
4. Unlock the remote desktop function after the automatic connection is successful
5. Related configuration and multi-language support introduction
6. Disclaimer
1. Introduction to program functions and usage environment
(1). Program function
VNC was originally a lightweight computer remote control software developed by the AT&T Laboratory of the University of Cambridge in England. It consists of VNC Server and VNC Viewer. VNC Server is the controlled server. VncViewer is used to control VNC. Server client program. With VncManager (Vnc Connection Manager). VncViewer can be used to remotely manage multiple VNC Servers more securely and efficiently. This program is the Vnc connection management program used by VncViewer. It implements the following functions based on the VncViewer function:
A. You can save the connection record in a CSV file;
B. The connection record can be managed efficiently and intuitively through the tree directory structure, and the connection record can be newly created, edited, copied, cut, pasted, moved, deleted, etc. by means of mouse dragging, shortcut keys, menus, and the like;
C. Can achieve automatic login of the connection record;
D. The remote desktop can be automatically unlocked after the automatic connection is successful, which is not possible only by VncViewer.
(2). Program use environment requirements
A. Please copy the VncViewer.exe file of RealVNC VncViewer 6.19.107 x86 directly to the program directory before use. VncViewer x86 is available for x86 and x64 systems, and VncViewer x64 is only available for x64 systems;
B. Please set the firewall to allow VncViewer.exe and VncManager.exe (for scanning functions only) to access the network;
C. To use the Vnc log function, copy the logmessages.dll file to the program directory.
(3). The use of the environment
The program is compiled with VS2017 WTL10 x86 (Windows Template Library, http://wtl.sourceforge.net/). The program is short and exquisite, does not depend on the VC runtime, and can run independently. The running file of this program is VncManager.exe. One computer can only run one instance. Running it again just transfers the running instance to the foreground. The program supports 32-bit and 64-bit WinXp, Vista, Win7, Win8.x, Win10 and corresponding Windows Server versions.
2, program operation method introduction
(1). mouse operation in the program
* Double-clicking on a record will automatically connect (wait 6 seconds);
* Support mouse wheel;
* The main menu and right-click menu can complete the normal operation of the program. The right-click menu of the record pane or click the corresponding button on the toolbar to connect directly;
* The "Configuration" menu in the main menu can select various related configurations of the program;
* The functions of each button on the toolbar are prompted;
* Click the Show Hidden Tree Directory button on the toolbar or the Directory -> Show Tree Directory menu to display the hidden directory tree pane. The right-click menu of the directory tree pane completes some general operations of the directory tree;
* Click the "Select Switch Icon View Mode" button on the toolbar to select or switch the view mode of the record pane;
* Both the record pane and the tree pane support mouse drag and drop. It is strongly recommended to back up VncManager.txt before using this function to avoid abnormal damage or loss of data. Drag and drop directly to move, Ctrl+mouse to copy. There is a prompt message in the status bar when dragging and dropping;
* When the program starts, the records are automatically sorted in ascending order by record name. In the Record pane, click on a list header in the list box, you can sort the records by that column, and click again to sort backwards.
(2). Commonly used shortcut keys in the program
* Enter : connection record;
* Insert : create a new record;
* Ctrl+e : edit the record;
* Ctrl+c : copy the record;
* Ctrl+x : cut record;
* Ctrl+v : paste the record;
* Delete : delete the record (in the record pane). or delete the subdirectory (in the directory tree pane);
* F1 : Display program information;
* F2 : renamed subdirectory;
* F3 : Single scan (waiting for 5 seconds, used to scan records with slower network speed);
* F5 : All scans (multi-thread simultaneous scan, each record waits 5 seconds);
During the scanning process, the status bar in the lower left corner will prompt, and the prompt disappears after the scanning is completed. It is recommended not to create, modify, delete, paste, cut, or sort records during the scanning process. Otherwise, the scanning result may be disordered, and other functions may be used normally;
* F7: New subdirectory;
* Ctrl+- : hide the window to the system tray;
* Ctrl+= : display window;
* Double-click the system tray icon to hide or show the window;
* Window size can be adjusted to support maximization and restoration;
* Supports Home, End, PageUp, PageDown and other operations.
3. Introduction of login information file VncManager.txt
(1). VncManager.txt content description
The login information is stored in the VncManager.txt file. If it is not created automatically, the password is encrypted with RC4. Please take care of it. VncManager.txt is an ANSI text file that follows the CSV format. All fields cannot contain the English exclamation mark "!", the English comma ",", and the vertical bar separator "|".
The first behavior is the name of each field in the login record. Each row holds a record, and each record contains 8 fields separated by 7 commas.
The RecordName record name is a key field that supports the Chinese record name. It cannot be empty and does not have a duplicate name.
IP, Port, User, and Password are IP address, port, user name, and password, respectively. The IP address cannot be empty. If the port is empty, the default port 5900 will be used.
UnlockDesktop is after the remote connection to the remote PC is successful. If the remote desktop is logged in and the focus is in the password input box, you can use the VNC password to unlock the remote desktop, or lock and then unlock the remote desktop. For details, see the following introduction.
Memory is a memo field;
TreePath is a directory path field consisting of a string of English exclamation marks "!" (directory separator). It supports Chinese directory names, such as the DirB subdirectory under the DirA subdirectory in the root directory: !DirA!DirB.
(2) Demonstration of VncManager.txt file with format conforming to requirements
RecordName, IP, Port, User, Password, UnlockDesktop, Memory, TreePath
Sample01,192.168.0.6,5900,user01,,,,!
Sample02,192.168.0.8,5900,user02,,,,!DirA!DirB
Sample03,192.168.0.9,5900,user03,,,,!DirC!DirD
(3). Can use VCRManager.txt to write Notepad, UltraEdit, Excel, etc.
VncManager.txt can be compiled with Notepad, UltraEdit, Excel, etc. You can also import the existing VncManager.txt into Excel. The specific method is:
A. Start Excel, select the menu "Data -> Import External Data -> Import Data", select the VncManager.txt file;
B. Step 1 of the text import wizard, click "Next" directly;
C. Step 2 must select the "comma" separator, and then click "Next";
D. Step 3 must set all 8 columns to text, select the columns in the data preview below, and then select the "text" in the data format in the upper right column. After all settings are completed, click "Finish" and "OK" to import successfully.
E. After processing, you must save it as a CSV file and rename it to VncManager.txt.
4, unlock the remote desktop function after the automatic connection is successful
(1). Unlock remote desktop function introduction
After the remote PC is successfully connected, if the remote desktop is logged in and the focus is in the password input box, you can use the password of the Vnc to unlock the remote desktop, or lock and then unlock the remote desktop.
To use this feature normally, the following conditions must be met:
A. The remote PC that has successfully connected is already logged in.
B. The user password for locking the remote desktop is the same as the password for connecting to the Vnc.
C. The focus of the remote desktop is in the password input box.
(2) Possible safety hazards
In the following situations, plain text passwords may exist and there are security risks:
A. The remote desktop is not locked before unlocking;
B. The remote desktop focus before unlocking is located in the text edit box.
(3). Related configuration
The user can individually configure the unlock remote desktop function for each record, and the related configuration information is saved in the UnlockDesktop field of each record. Be cautious, this feature is not enabled by default. Users can choose not to use (this field is empty). or "UnlockDesktop", or "LockThenUnlock" for each record according to the actual situation.
This field is empty, that is, if you do not use this function, the plain text password will not appear.
"UnlockDesktop" means to unlock the remote desktop directly, but a clear text password may appear.
"LockThenUnlock" means that if the remote desktop is unlocked before unlocking, you can lock the remote desktop and unlock it first, so as to avoid plain text passwords.
5, Related configuration and multi-language support introduction
(1). Configuration file VncManager.ini
The "Configuration" menu in the main menu allows you to select the relevant configuration of the program. The configuration of the program is saved in the VncManager.ini configuration file, and will be created automatically if no program exists. If the main window cannot be displayed after the program runs due to configuration confusion or abnormal shutdown, you can back up and delete the VncManager.ini file, and the program will run normally.
(2). Multi-language support
This program uses INI files to achieve multi-language support. Each language information is stored in an INI format file with the extension lng. Language files can be in Unicode or ANSI format, and Unicode format is generally recommended. This approach has more scalability, and users can add their own language files very simply and conveniently.
The default language of the program is Simplified Chinese, and the English language file English.lng is also available. If the program does not have an external language file at startup, the built-in default language (Simplified Chinese) will be used. If there is an external language of *.lng in the program directory, the program will automatically list the external language (named after the file name of the language file) under the "About->Language" menu. When the user selects an external language, the user can dynamically switch to the new language interface without restarting the program. The user's language selection will be automatically saved to the VncManager.ini file. After the program is closed, the user will automatically use the new language interface. .
Users can modify their own language files as follows:
A. Refer to English.lng to modify and modify your own language files, such as French.lng;
B. Copy the prepared language files to the program directory;
C. After restarting the program, the new language French added by the user will be automatically listed under the "About->Language" menu;
D. Selecting the language can dynamically switch to the new language interface without restarting the program. After the program is closed, the new language interface selected by the user will be automatically used next time.
Prepare language files Note:
A. The middle part of the language file can not have a blank line, blank line means the end of the file, after the blank line can not find the translation. If you need a blank line identifier separation, you can add an English semicolon ";" before the blank line, that is, a comment line;
B. The string in the language file. If you need leading and trailing spaces, you can enclose the string in English double quotes or English single quotes. You don't need spaces to add quotes.
The multi-language support function of this program is implemented by means of the method provided by the user Yonsm. Interested users can visit the website http://yonsm.net/ini-language-engine/.
(3). Enable VncViewer help
In this program, to enable the menu item "Help -> VncViewer Help", you need to copy the VncViewer PDF help file to VncViewer.pdf in the program directory, and your system needs to install the PDF reading tool.
6. Disclaimer
Users can choose this program at their own discretion. If reproduced, please indicate the source. The author does not assume any responsibility for all consequences!