473,473 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
Create 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 1547
"Billy Porter" <bi***@xymox.com> wrote in
news:uJ**************@TK2MSFTNGP14.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_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Billy Porter" <bi***@xymox.com> wrote in
news:uJ**************@TK2MSFTNGP14.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.com> wrote in
news:u5**************@TK2MSFTNGP09.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.Postion), 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
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...
4
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...
1
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
1
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.