Files
wow/ddl/chm_output/com_fun/SetDevDescInfo.html
王鹏 33dc741fd9 add 硬件控制模块 (hardware_control.py) 并修复游戏状态扫描区域宽度
- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制
- 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题
- 添加鼠标路径录制器、硬件测试脚本等工具
- 更新多项配置默认值

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 12:15:00 +08:00

69 lines
3.3 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 VID32位整形数。USB接口的制造商ID。可设置值的范围0-65535。值为65536时不修改无涯键鼠盒子VID值。<br />
参数2 PID32位整形数。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(&amp;h1234&amp;,&amp;hABCD&amp;,0)<br />
If DevId=-1 Then<br />
&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;未找到无涯键鼠盒子&quot;,4096<br />
&nbsp;&nbsp;&nbsp;&nbsp;wscript.quit<br />
End If<br />
If Not wyhkm.Open(DevId,0) Then<br />
&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;打开无涯键鼠盒子失败&quot;,4096<br />
&nbsp;&nbsp;&nbsp;&nbsp;wscript.quit<br />
End If<br />
<span class="note">//修改设备描述信息PID和制造商名不修改</span><br />
wyhkm.SetDevDescInfo &amp;h1235&amp;,&amp;h10000&amp;,&amp;h0101&amp;,1,&quot;Mouse&quot;,1,false<br />
wyhkm.Close</td>
</tr>
</table>
</body>
</html>