Files
wow/ddl/chm_output/com_fun/GetDevInfo.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

86 lines
2.9 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>GetDevInfo</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">GetDevInfo 获得设备信息</td>
</tr>
<tr>
<th>功能</th>
<td>获得无涯键鼠盒子的设备信息。无涯键鼠盒子基础版一代不支持此函数。使用<a href="Open.html">Open</a>打开设备后才可以使用它。</td>
</tr>
<tr>
<th>参数</th>
<td class="canshu">参数1 序号32位整型数。需要获取的信息的序号。可取值如下<br />
<table width="395" border="1" cellpadding="0" cellspacing="0">
<tr>
<th width="39" scope="col"><span class="thf">序号</span></th>
<th width="342" scope="col"><span class="thf">说明</span></th>
</tr>
<tr>
<td>1</td>
<td>设备类型。无涯键鼠盒子基础版一代返回1无涯键鼠盒子基础版二代返回2。</td>
</tr>
<tr>
<td>2</td>
<td>固件版本。返回值中0-15位是修订号16-23位是副版本号24-31位是主版本号。</td>
</tr>
<tr>
<td>3</td>
<td>运行时间。返回值是从通电或者复位开始运行的毫秒数,断电和复位都会归零。系统休眠时不计时。这个时间精度不高,有误差。</td>
</tr>
<tr>
<td>4</td>
<td>通电时间。返回值是从通电开始运行的毫秒数,断电会归零,复位不会归零。系统休眠时不计时。这个时间精度不高,有误差。</td>
</tr>
<tr>
<td>6</td>
<td>复位次数。</td>
</tr>
<tr>
<td>7</td>
<td>运行状态。设备未连接返回-1设备准备中返回0正常工作状态返回1编辑状态返回2禁止操作状态返回3。</td>
</tr>
<tr>
<td>8</td>
<td>USB设备接口的VID值。</td>
</tr>
<tr>
<td>9</td>
<td>USB设备接口的PID值。</td>
</tr>
<tr>
<td>10</td>
<td>USB设备接口的设备版本值。</td>
</tr>
</table>
参数2 是否鼠标布尔值。取false时自动获得设备信息如果同时有键盘模式或者鼠标模式的设备获得键盘模式的设备信息。取true时自动获得设备信息如果同时有键盘模式或者鼠标模式的设备获得鼠标模式的设备信息。</td>
</tr>
<tr>
<th>返回值</th>
<td class="fanhui"><span class="canshu">32位整型数</span>。返回值由参数1决定。</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 />
MsgBox &quot;无涯键鼠标盒子固件版本号:&quot; &amp; Hex(wyhkm.GetDevInfo(2,false)),4096<br />
wyhkm.Close</td>
</tr>
</table>
</body>
</html>