📄 8491.html
字号:
<html>
<head>
<title>to CWW: 关于 KeyBoard Hook</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>to CWW: 关于 KeyBoard Hook</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:demon.alex.ng@mailcity.com">七枷社 </a> on December 21, 1998 at 18:13:17:<p>
In Reply to: <a href="8376.html">需subclass的技巧</a> posted by cww on December 17, 1998 at 08:10:04:<p>
: 查一下http://sunh.hosp.ncku.edu.tw/~cww<br>: 中有相对的文章<p>谢谢,有关问题我已经解决了。 关于您的 Keyboard hook.我加了一个 timer control.就不会影响到其它程式的运行。<p>程式:<p>public kbdhook as boolean<br>dim const VK_CONTROL = &H11<p>private sub form_activate()<br> time1.enable=true<br>end sub<p>private sub form_deactivate()<br> time1.enable=false<br>end sub<p>private sub time1_timer()<br> If GetKeyState(VK_Control) < 0 Then<br> Call EnableKBDHook<br> KbdHook = True<br> Else<br> If KbdHook = True Then<br> Call UnHookKBD<br> KbdHook = False<br> End If<br> End If<br>End Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 8491-->
</ul><!--end: 8491-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -