- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
2.3 KiB
HTML
65 lines
2.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>IsOpen</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">IsOpen 判断设备是否打开</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="320" border="1" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<th width="34" scope="col"><span class="thf">值</span></th>
|
||
<th width="280" scope="col"><span class="thf">说明</span></th>
|
||
</tr>
|
||
<tr>
|
||
<td>0</td>
|
||
<td>判断设备是否被打开(键鼠、键盘或鼠标模式的设备都可以,不可与其它值同时使用)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>1</td>
|
||
<td>判断键盘是否被打开(键鼠或者键盘模式的设备)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>2</td>
|
||
<td>判断鼠标是否被打开(键鼠或者鼠标模式的设备)</td>
|
||
</tr>
|
||
</table></td>
|
||
</tr>
|
||
<tr>
|
||
<th>返回值</th>
|
||
<td class="fanhui">布尔值。已打开返回true,未打开返回false。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>vbs<br />例子</th>
|
||
<td class="lizi"><p>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 />
|
||
If wyhkm.IsOpen(0) Then<br />
|
||
MsgBox "无涯键鼠盒子已打开",4096<br />
|
||
Else<br />
|
||
MsgBox "无涯键鼠盒子未打开",4096<br />
|
||
End If<br />
|
||
wyhkm.Close</p></td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |