- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
2.6 KiB
HTML
48 lines
2.6 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>SetResetTime</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">SetResetTime 设置复位时间</td>
|
||
</tr>
|
||
<tr>
|
||
<th>功能</th>
|
||
<td>设置无涯键鼠盒子的延时复位时间。盒子内有个计时器,使用该函数后,时间到了就会使盒子复位。无论使用这个函数还是其它访问盒子的键鼠命令,都会使计时器重新计时。复位后计时器失效,需要使用该函数重新设置。无涯键鼠盒子有时在特殊情况下会出现通讯异常,或者程序突然退出导致按下的键无法弹起,这个函数可以免去这些情况下插拔盒子烦恼。如果条件允许,尽量在停止无涯键鼠盒子操作后关闭延时复位。因为正常的键盘和鼠标除非接触不良,一般不会出现复位现象。无涯键鼠盒子基础版一代不支持此函数。使用<a href="Open.html">Open</a>打开设备后才可以使用它。<br />
|
||
不会访问盒子的函数有:GetVersion、 IsOpen、 Close、 SetMode、 SetKeyInterval、 SetMouseInterval、 SetAbsMouseScrnRes、 SetMouseMoveTimeout、 SetMousePosMaxOffset、 SetMousePosPrecision、 DelayRnd、 CheckPressedKeys、 IsOSMouseAccelerateEnabled、 EnableOSMouseAccelerate、 GetOSMouseSpeed、 SetOSMouseSpeed、GetDevString。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>参数</th>
|
||
<td class="canshu">参数1 延时时间:32位整形数。单位毫秒。取0时关闭延时复位。非0时最小值是50毫秒,最大值是19小时。<br />
|
||
参数2 是否鼠标:布尔值。取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 />
|
||
Do<br />
|
||
wyhkm.SetResetTime(1000,false)<br />
|
||
wyhkm.DelayRnd(90,120)<br />
|
||
Loop<br />
|
||
wyhkm.Close</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |