473,545 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Catching events outside the application...

How would I go about catching events outside my application?

Example: Babylon Pro is a program that runs silently (with a hidden GUI) in
the system tray. Whenever you use the keyboard/mouse combination CTRL+Right
mouse click (in ANY program), the GUI is shown containing the dictionary
lookup of the marked word.

If I were to write such an application, how could I catch that particular
keyboard combination outside of my application.

Thanks!
Nov 17 '05 #1
3 1559
"Billy Porter" <bi***@xymox.co m> wrote in
news:uJ******** ******@TK2MSFTN GP14.phx.gbl:
How would I go about catching events outside my application?

Example: Babylon Pro is a program that runs silently (with a
hidden GUI) in the system tray. Whenever you use the
keyboard/mouse combination CTRL+Right mouse click (in ANY
program), the GUI is shown containing the dictionary lookup of
the marked word.

If I were to write such an application, how could I catch that
particular keyboard combination outside of my application.


http://www.dotnet2themax.com/ShowCon...b-df9a75f30944

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 17 '05 #2
Thank you so much, thats just what I was looking for!

Just one more thing: Is there any way to get the word that was clicked on
(just like Babylon)? See my former post for more information.

Thanks again!

"Chris R. Timmons" <crtimmons@X_NO SPAM_Xcrtimmons inc.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.16...
"Billy Porter" <bi***@xymox.co m> wrote in
news:uJ******** ******@TK2MSFTN GP14.phx.gbl:
How would I go about catching events outside my application?

Example: Babylon Pro is a program that runs silently (with a
hidden GUI) in the system tray. Whenever you use the
keyboard/mouse combination CTRL+Right mouse click (in ANY
program), the GUI is shown containing the dictionary lookup of
the marked word.

If I were to write such an application, how could I catch that
particular keyboard combination outside of my application.


http://www.dotnet2themax.com/ShowCon...b-df9a75f30944

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/

Nov 17 '05 #3
"Billy Porter" <bi***@xymox.co m> wrote in
news:u5******** ******@TK2MSFTN GP09.phx.gbl:
Thank you so much, thats just what I was looking for!

Just one more thing: Is there any way to get the word that was
clicked on (just like Babylon)? See my former post for more
information.


Billy,

I'm not sure how that's done. I think you would need to get the
current mouse position (System.Windows .Forms.Cursor.P ostion), and
then use the Windows API to get the handle of the window at that
position. Using that handle, check if the window is some kind of
text box. If it is, ideally the textbox would have some kind of
method you could query to have it tell you what word (if any) the
mouse cursor is hovering over.

I don't know exactly how Babylon is getting the word under the
cursor, but it is probably a much more complicated process than
what I just described. Here's an opinion from Peter Below, a
highly respected Delphi and Windows API expert, on this very topic:

http://groups.google.com/group/borla...343dabcaf8376c

or

http://tinyurl.com/8fvnh
--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1891
by: yuval | last post by:
Hi DragDrop event is fired by the control accepting the drop If the drop is performed outside the controls I'm watching with events (like on another control/panel/window or outside my app) is there a way for me to know about it? (In MFC, for example, mouse movements are captured) Or do I just have to follow DragEnter/DragLeave and...
4
22859
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on when to use one over another? If anyone could provide any additional info, your comments, best practices, any good articles, specific examples, etc....
1
1407
by: William F. Robertson, Jr. | last post by:
Is it possible to wire another event handler to the Application events? If so, how can I gain access to the events for the Application. thanks, bill
3
1643
by: yuval | last post by:
Hi DragDrop event is fired by the control accepting the drop If the drop is performed outside the controls I'm watching with events (like on another control/panel/window or outside my app) is there a way for me to know about it? (In MFC, for example, mouse movements are captured) Or do I just have to follow DragEnter/DragLeave and...
0
7484
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7440
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5344
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.