捕获与.NET应用程序不相关的KeyStrokes。 [英] Capturing KeyStrokes Not Relative To The .NET Application.

查看:88
本文介绍了捕获与.NET应用程序不相关的KeyStrokes。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个名为ShortKey的程序,这个程序的基本功能是
这个程序如下:

假设您定义了一个名为MSDN的快捷键。每当你输入MSDN代替MSDN时,该程序将是
http://msdn.micosoft.com/ 。我认为这不应该是很难做到的,我错了(或者至少,我认为)。


我的问题是,有没有在不需要使用低级键盘钩子的情况下在Visual Basic中实现这一点

Basic.NET?

提前使用。

解决方案

*" CMG" < VB **** @ divx-warez.nl> scripsit:

有一个名为ShortKey的程序,该程序的基本功能如下:
假设您定义了一个名为MSDN的快捷键。每当您输入MSDN替换MSDN时,程序将会
http:/ /msdn.micosoft.com/ 。我认为这不应该如此难以制作,我错了(或者至少,我认为)。

我的问题是,有没有办法在Visual中做到这一点/> Basic.NET无需使用低级键盘钩?




No.


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>


that'实际上是一个相当复杂的有限状态机开始...可以

非常耗费时间来编程执行...


它是可能的用VB.NET来做这个,但是你需要读取发送到系统的所有

键盘消息..这可以获得非常低的水平

windows做的事情......

" CMG" < VB **** @ divx-warez.nl>在消息中写道

news:02 **************************** @ phx.gbl ... < blockquote class =post_quotes>有一个名为ShortKey的程序,该程序的基本功能如下:
假设您定义了一个名为MSDN的快捷键。每当您输入MSDN替换MSDN时,程序将会
http:/ /msdn.micosoft.com/ 。我认为这不应该如此难以制作,我错了(或者至少,我认为)。

我的问题是,有没有办法在Visual中做到这一点没有使用低级键盘钩子的Basic.NET?

提前使用。



我知道,是的,这就是我害怕... :(在那个

的情况下,我不打算很快做那个时间:)


Thanx for你的帮助,


CMG

-----原始消息-----
这实际上是一个相当复杂的有限状态机器到
开始......可以非常耗费时间来编程执行...

VB.NET可以这样做,但你需要
到阅读发送到系统的所有键盘消息..这样可以获得
非常低级别的窗口来做...

" CMG" < VB **** @ divx-warez.nl>在消息中写道
新闻:02 **************************** @ phx.gbl ...

有一个名为ShortKey的程序,该程序的基本功能
如下:
假设您定义了一个名为MSDN的快捷键。每当你输入MSDN代替MSDN时,程序
就会用
http:/ /msdn.micosoft.com/ 。我认为这不应该如此难以制作,我错了(或者至少,我认为)。

我的问题是,有没有办法在Visual中做到这一点/> Basic.NET无需使用低级键盘
挂钩?

提前完成。




There is a program called ShortKey, the basic function of
this program is the following:
Say you define a shortkey called "MSDN". The program will
then, everytime you type MSDN replace MSDN with
http://msdn.micosoft.com/. I thought this should not be
so hard to make, i was wrong (or at least, i think).

My question is, is there a way to make this in Visual
Basic.NET without having to use low level keyboard hooks?
Thanx in advance.

解决方案

* "CMG" <vb****@divx-warez.nl> scripsit:

There is a program called ShortKey, the basic function of
this program is the following:
Say you define a shortkey called "MSDN". The program will
then, everytime you type MSDN replace MSDN with
http://msdn.micosoft.com/. I thought this should not be
so hard to make, i was wrong (or at least, i think).

My question is, is there a way to make this in Visual
Basic.NET without having to use low level keyboard hooks?



No.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


that''s actually a fairly complex finite state machine to start with... can
be very time consumeing to program an execute...

it is possible with VB.NET to do this, but you will need to read all the
keyboard messages sent to the system.. which can get very low level in
windows to do...
"CMG" <vb****@divx-warez.nl> wrote in message
news:02****************************@phx.gbl...

There is a program called ShortKey, the basic function of
this program is the following:
Say you define a shortkey called "MSDN". The program will
then, everytime you type MSDN replace MSDN with
http://msdn.micosoft.com/. I thought this should not be
so hard to make, i was wrong (or at least, i think).

My question is, is there a way to make this in Visual
Basic.NET without having to use low level keyboard hooks?
Thanx in advance.



YEah, i know, that was what i was afraid of... :( in that
case, i am not planning of doing that anny time soon :)

Thanx for your help,

CMG

-----Original Message-----
that''s actually a fairly complex finite state machine to start with... canbe very time consumeing to program an execute...

it is possible with VB.NET to do this, but you will need to read all thekeyboard messages sent to the system.. which can get very low level inwindows to do...
"CMG" <vb****@divx-warez.nl> wrote in message
news:02****************************@phx.gbl...

There is a program called ShortKey, the basic function of this program is the following:
Say you define a shortkey called "MSDN". The program will then, everytime you type MSDN replace MSDN with
http://msdn.micosoft.com/. I thought this should not be
so hard to make, i was wrong (or at least, i think).

My question is, is there a way to make this in Visual
Basic.NET without having to use low level keyboard hooks?

Thanx in advance.


.



这篇关于捕获与.NET应用程序不相关的KeyStrokes。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆