From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



如何在LabWindows™/CVI™中显示或隐藏触摸屏键盘?



主要软件: LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System
主要软件版本: 2013
主要软件修正版本: N/A
次要软件: N/A

问题: 我在Windows 7的触摸屏电脑上运行LabWindows/CVI。通过按下屏幕上的键盘我无法在LabWindows/CVI文本区域得到正确的显示结果,我想隐藏屏幕上的键盘,只使用外置键盘。 LabWindows/CVI 是否存在可以隐藏屏幕上的键盘或者至少可以最小化屏幕上的键盘的函数?

解答:

 LabWindows/CVI并没有任何内置的函数来和屏幕上的键盘进行通信。控制键盘的方法是调用可执行的系统函数,相当于从命令行启动程序。

一种方法是使用类似于如下所述的LabWindows/CVI函数:

static int g_exeHandle;
LaunchExecutableEx ("osk.exe", LE_SHOWNORMAL, &g_exeHandle);
TerminateExecutable (g_exeHandle);

另一种方法是通过调用WinAPI,参考相关链接中的外部链接。你可以在LabWindows/CVI中通过如下的帮助文档所描述的方法使用WinAPI: LabWindows/CVI Help: Interface to Win32 Application Programmatic Interface (API) Include Files



相关链接: LabWindows/CVI Help: Interface to Win32 Application Programmatic Interface (API) Include Files
External Link: How to show, close, move, or resize the On-Screen Keyboard (Java, C#, C++, Visual Basic, Delphi, etc.)

附件:





报告日期: 03/11/2015
最近更新: 11/06/2016
文档编号: 6VA8NIAF