Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 怎么区别虚拟按键和真实按键?
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 怎么区别虚拟按键和真实按键?
sunnyfairy
新警察
UID 57476
Digest Posts 0
Credits 34
Posts 12
点点分 34
Reading Access 10
Registered 2011-1-3
Status Offline
#1
Post at 2011-8-27 10:41
Profile
|
Blog
|
P.M.
怎么区别虚拟按键和真实按键?
网上找不到答案。这个论坛虽然不景气,但是还是有高手的,特别是我葱白的管理员
。
RT。
比如我要在TEdit中按下回车键,我所知道的可以有以下三种方法。
1.直接在键盘上按下回车键
2.keybd_enent模拟
3.SendMessage等消息方式。
现在我要区别出来这三种方式。
第一种与第二种可以通过全局键盘钩子WH_KEYBOARD_LL来判断。并证明是可行的。
但是有什么方法把第一种和第三种也区别开来?
sunnyfairy
新警察
UID 57476
Digest Posts 0
Credits 34
Posts 12
点点分 34
Reading Access 10
Registered 2011-1-3
Status Offline
#2
Post at 2011-8-27 10:47
Profile
|
Blog
|
P.M.
我的目的很简单,就是我的程序只接收直接回车键,不允许别人用非法软件来执行回车。
HOOK SendMessage,PostMessage等消息是不是可行?
ntdll中好像没有对应的ntSendMessage了吧。
sunnyfairy
新警察
UID 57476
Digest Posts 0
Credits 34
Posts 12
点点分 34
Reading Access 10
Registered 2011-1-3
Status Offline
#3
Post at 2011-8-29 20:45
Profile
|
Blog
|
P.M.
AnyBody?
dotnet20
新警察
UID 67275
Digest Posts 0
Credits 16
Posts 7
点点分 16
Reading Access 10
Registered 2011-11-3
Status Offline
#4
Post at 2011-11-23 08:10
Profile
|
Blog
|
P.M.
问题与cnpack无关,楼主发错了地方
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-10-7 04:23
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.009529 second(s), 7 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