Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» Delphi input Helper for Delphi 2005
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Delphi input Helper for Delphi 2005
internetzs
新警察
UID 529
Digest Posts 0
Credits 31
Posts 31
点点分 31
Reading Access 10
Registered 2004-9-29
Status Offline
#1
Post at 2004-12-9 16:22
Profile
|
Site
|
Blog
|
P.M.
Delphi input Helper for Delphi 2005
一切为了稳定,我简化了输入法功能。
直接调用CodeCompletion,而不再使用自定义的SymbolList,
Hook EditControl是造成不稳定的主要原因,改用了Global keyboard Hook
http://blog.csdn.net/51357/archive/2004/12/09/210647.aspx
Yeah, this is johnson. Johnson is a programmer.
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#2
Post at 2004-12-10 08:42
Profile
|
Site
|
Blog
|
P.M.
关于键盘钩子
我简单看了下代码,感觉使用一个第三方的dll来实现键盘钩子不是太合适,这个dll是使用SetWindowsHookEx 来进行 Hook 的,直接用 SetWindowsHookEx 创建键盘钩子也是很简单的啊。
另外我原来用钩子的时候发现根据 MSDN 中的说法做出来的钩子会导致万能五笔输入法不能使用,后来改了改可以用了,还是觉得不好,现在 CnWizards 里的输入助手是使用 ApplicationEvents.OnMessage 来拦截按键消息,效果也不错。
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
internetzs
新警察
UID 529
Digest Posts 0
Credits 31
Posts 31
点点分 31
Reading Access 10
Registered 2004-9-29
Status Offline
#3
Post at 2004-12-10 23:50
Profile
|
Site
|
Blog
|
P.M.
ApplicationEvents.OnMessage 能拦截KeyDown消息吗?
Yeah, this is johnson. Johnson is a programmer.
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#4
Post at 2004-12-11 11:23
Profile
|
Site
|
Blog
|
P.M.
呵呵,估计你也没想到,你看看 Application.ProcessMessage 的代码就知道了。
这个比什么Hook都好用,而且也安全。
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 06:55
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007932 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats