473,700 Members | 2,424 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 1569
"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
1895
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 deduce from that?
4
22880
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. Thank you
1
1421
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
1648
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 deduce from that?
0
8728
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8647
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8974
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7813
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6563
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5903
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3092
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
3
2030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.