How to track the mouse without capturing it?

  • Thread starter Thread starter Will Pittenger
  • Start date Start date
W

Will Pittenger

If I were writing a C++ program, I would write a mouse hook. Does C# and
..NET 1.1 have anything equivalent. If not, I suppose I will need to use the
Win32 API.
 
Will Pittenger said:
If I were writing a C++ program, I would write a mouse hook. Does C# and
.NET 1.1 have anything equivalent. If not, I suppose I will need to use the
Win32 API.

A 5-second Google search revealed:
http://support.microsoft.com/?kbid=318804

;)

-C

P.S. - nothing personal, I do the same thing sometimes
and people give me crap about it all the time, I'm just
spreading the sarcasm a little :)
 
so... is "spreading it" supposed to somehow ameliorate
"the crap", or is this revenge?

;o)
 
Not only does it cover hooks, but it does so with the mouse hook. Still, I
was hoping that somewhere there was a .NET event which did the hook for
you..
 
Will Pittenger said:
Not only does it cover hooks, but it does so with the mouse hook. Still, I
was hoping that somewhere there was a .NET event which did the hook for
you..

if you want to hook only your app messages you should use the IMessageFilter
else use the above which is a system hook
 
Well the code that I wrote was based on the article that you pointed me to.
And as I noted, I used Word to help OE. Can a MEC++ DLL be written with out
VC++.NET? All I have is VC# Standard. It sounds like with .NET, if you
want the professional compilers, you MUST buy the entire studio. I do not
have that kind of money.
 
Will Pittenger said:
Well the code that I wrote was based on the article that you pointed me to.
And as I noted, I used Word to help OE. Can a MEC++ DLL be written with out
VC++.NET? All I have is VC# Standard. It sounds like with .NET, if you
want the professional compilers, you MUST buy the entire studio. I do not
have that kind of money.

You can write .NET code in notepad if you want.

Well, I thought that a MEC++ compiler came with the .NET Framework
SDK, but I can't seem to find it, so I must be wrong :(

As far as the other compilers, you don't need VS.NET 2003.

The .NET Framework SDK (free) comes with a C# compiler,
a VB.NET compiler and a JScript.NET compiler, as well as
an IL compiler and an assembly linker. All free.

Shoulda got VC++.NET and then used SharpDevelop or something :(

-c
 
If you look at the more recent thread where someone is asking which C# to
get, you will find that the main reason I got the book that I did was that
it came with C# (a $100 value), but cost only $79. Where do your deals come
from?
 
MSDN Subscriptions :)

I've always been fortunate enough to work for companies
with enough MSDN subscriptions for me to legally have a copy
of VS.NET on my laptop for work or whatnot.

-c
 
Back
Top