- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
69 lines
3.3 KiB
HTML
69 lines
3.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||
<title>SetDevDescInfo</title>
|
||
<link rel="stylesheet" type="text/css" href="css/help.css">
|
||
</head>
|
||
<body>
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="ts">
|
||
<tr>
|
||
<th width="50">名称</th>
|
||
<td class="name">SetDevDescInfo 设置设备描述信息</td>
|
||
</tr>
|
||
<tr>
|
||
<th>功能</th>
|
||
<td>设置无涯键鼠盒子的设备描述信息。这个函数设置无涯键鼠盒子的USB接口信息后<a href="HKMSetResetTime.html"></a>,由于设备信息改变,系统会重新识别设备和自动安装驱动,需要等待几分钟或更长时间才能正常使用,这个过程中不要拔出盒子,否则会导致系统安装驱动失败。修改后需要关闭设备,等待系统安装驱动完成后再查找和打开设备,否则有些功能会受到影响,无法正常工作。无涯键鼠盒子基础版二代的固件版本大于等于1.2.0才支持此函数。使用<a href="Open.html">Open</a>打开设备后才可以使用它。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>参数</th>
|
||
<td class="canshu">参数1 VID:32位整形数。USB接口的制造商ID。可设置值的范围0-65535。值为65536时不修改无涯键鼠盒子VID值。<br />
|
||
参数2 PID:32位整形数。USB接口的产品ID。可设置值的范围0-65535。值为65536时不修改无涯键鼠盒子PID值。<br />
|
||
参数3 版本:32位整形数。USB接口的设备版本。可设置值的范围0-65535。值为65536时不修改无涯键鼠盒子版本值。<br />
|
||
参数4 制造商名:变体型(32位整型数或<a href="BSTR.html">BSTR</a>类型)。USB接口的制造商名。设置制造商名是字符串。不修改制造商名时使用32位整型数,值为1。<br />
|
||
参数5 产品名:变体型(32位整型数或<a href="BSTR.html">BSTR</a>类型)。USB接口的产品名。设置产品名是字符串。不修改产品名时使用32位整型数,值为1。 <br />
|
||
参数6 模式:32位整形数。可取值如下:<br />
|
||
<table width="245" border="1" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<th width="34" scope="col"><span class="thf">值</span></th>
|
||
<th width="205" scope="col"><span class="thf">说明</span></th>
|
||
</tr>
|
||
<tr>
|
||
<td>0</td>
|
||
<td>取消临时设置。</td>
|
||
</tr>
|
||
<tr>
|
||
<td>1</td>
|
||
<td>临时设置,断电(USB接口停电或拔出无涯键鼠盒子)后恢复。</td>
|
||
</tr>
|
||
<tr>
|
||
<td>2</td>
|
||
<td>永久设置,断电后不会恢复,但有设置次数限制,不断电只能设置5次。</td>
|
||
</tr>
|
||
</table>
|
||
参数7 是否鼠标:布尔值。取false时,自动设置设备描述信息,如果同时有键盘模式或者鼠标模式的设备,设置键盘模式的设备的设备描述信息。取true时,自动设置设备描述信息,如果同时有键盘模式或者鼠标模式的设备,设置鼠标模式的设备的设备描述信息。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>返回值</th>
|
||
<td class="fanhui">布尔值。成功返回true,失败返回false。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>vbs<br />
|
||
例子</th>
|
||
<td class="lizi">Dim DevId<br />
|
||
DevId=wyhkm.SearchDevice(&h1234&,&hABCD&,0)<br />
|
||
If DevId=-1 Then<br />
|
||
MsgBox "未找到无涯键鼠盒子",4096<br />
|
||
wscript.quit<br />
|
||
End If<br />
|
||
If Not wyhkm.Open(DevId,0) Then<br />
|
||
MsgBox "打开无涯键鼠盒子失败",4096<br />
|
||
wscript.quit<br />
|
||
End If<br />
|
||
<span class="note">//修改设备描述信息,PID和制造商名不修改</span><br />
|
||
wyhkm.SetDevDescInfo &h1235&,&h10000&,&h0101&,1,"Mouse",1,false<br />
|
||
wyhkm.Close</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |