Files
wow/ddl/chm_output/standard_fun/HKMSetResetTime.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

52 lines
2.8 KiB
HTML
Raw Permalink 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>HKMSetResetTime</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">HKMSetResetTime 设置复位时间</td>
</tr>
<tr>
<th>功能</th>
<td>设置无涯键鼠盒子的延时复位时间。盒子内有个计时器,使用该函数后,时间到了就会使盒子复位。无论使用这个函数还是其它访问盒子的键鼠命令,都会使计时器重新计时。复位后计时器失效,需要使用该函数重新设置。无涯键鼠盒子有时在特殊情况下会出现通讯异常,或者程序突然退出导致按下的键无法弹起,这个函数可以免去这些情况下插拔盒子烦恼。如果条件允许,尽量在停止无涯键鼠盒子操作后关闭延时复位。因为正常的键盘和鼠标除非接触不良,一般不会出现复位现象。无涯键鼠盒子基础版一代不支持此函数。<br />
不会访问盒子的函数有HKMGetVersion、HKMIsOpen、HKMClose、HKMSetMode、HKMSetKeyInterval、HKMSetMouseInterval、HKMSetAbsMouseScrnRes、HKMSetMouseMoveTimeout、HKMSetMousePosMaxOffset、HKMSetMousePosPrecision、HKMDelayRnd、HKMCheckPressedKeys、HKMFreeData、HKMIsOSMouseAccelerateEnabled、HKMEnableOSMouseAccelerate、HKMGetOSMouseSpeed、HKMSetOSMouseSpeed、HKMGetDevString。相关函数<a href="HKMSetResetMode.html">HKMSetResetMode</a></td>
</tr>
<tr>
<th>参数</th>
<td class="canshu">参数1 设备对象无类型指针。使用<a href="HKMOpen.html">HKMOpen</a>可以创建它。<br />
参数2 延时时间无符号32位整形数。单位毫秒。取0时关闭延时复位。非0时最小值是50毫秒最大值是19小时。<br />
参数3 是否鼠标布尔值。取FALSE时自动设置延时复位时间如果同时有键盘模式或者鼠标模式的设备设置键盘模式的设备的延时复位时间。取TRUE时自动设置延时复位时间如果同时有键盘模式或者鼠标模式的设备设置鼠标模式的设备的延时复位时间。</td>
</tr>
<tr>
<th>返回值</th>
<td class="fanhui">布尔值。成功返回TRUE失败返回FALSE。</td>
</tr>
<tr>
<th>C语言<br />例子</th>
<td class="lizi">DWORD dwDevId;<br />
LPVOID lpDev;<br />
dwDevId=HKMSearchDevice(0x1234,0xABCD,0);<br />
if(dwDevId==0xFFFFFFFF)<br />
{<br /> &nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;未找到无涯键鼠盒子\n&quot;);<br /> &nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
}<br />
lpDev=HKMOpen(dwDevId,0);<br />
if(lpDev==NULL)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;打开无涯键鼠盒子失败\n&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
}<br />
for(;;)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;HKMSetResetTime(lpDev,1000,FALSE);<br />
&nbsp;&nbsp;&nbsp;&nbsp;HKMDelayRnd(lpDev,90,120);<br />
}<br />
HKMClose(lpDev);</td>
</tr>
</table>
</body>
</html>