Hi All
Can anybody please suggest me in this regard that I need to capture the
keystrokes on all the word processors (Ms Word, Excel .. Etc), text editors
(Notepad .. Etc) and suggest nearer words to the keystrokes. I have the DB
for suggesting the nearer words but wasn't sure on how to capture the
keystrokes on all the word processors, text editors.
Please advise. Thanking you in advance.
Regards
T.L Vighneswar Mulaga 4 1034
Capturing key strokes for external apps would require Win32 hooks and
calls, but is very brittle anyway - for example, how do you know what
they are doing at the time? They might not be typing words, but using
shortcut / button key presses.
Some apps do this type of thing by hooking into the text control
(easier for simple things like notepad). There is a big difference
between each of Word, Excel and notepad. You would almost certainly
need a different approach for each. But then, since Word and Excel
have this built in, why would you bother?
Most times, if software is doing this, it could be construed as
malicious. You might get some security issues...
Marc
Thank you Marc ... Actually we need to develop an application that works in
this way.
Regards
Vighneswar
"Marc Gravell" wrote:
Capturing key strokes for external apps would require Win32 hooks and
calls, but is very brittle anyway - for example, how do you know what
they are doing at the time? They might not be typing words, but using
shortcut / button key presses.
Some apps do this type of thing by hooking into the text control
(easier for simple things like notepad). There is a big difference
between each of Word, Excel and notepad. You would almost certainly
need a different approach for each. But then, since Word and Excel
have this built in, why would you bother?
Most times, if software is doing this, it could be construed as
malicious. You might get some security issues...
Marc
Then you will need to insert a low level keyboard hook, and work out for
each keystroke whether the user is typing in an application where you should
be making a suggestion, or some other place (such as changing a file name in
Explorer). It is fraught with difficulty.
See: http://msdn.microsoft.com/en-us/libr...85(VS.85).aspx
LowLevelKeyboar dProc Function http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
SetWindowsHookE x Function
"Vighneswar " <Vi********@dis cussions.micros oft.comwrote in message
news:D6******** *************** ***********@mic rosoft.com...
Thank you Marc ... Actually we need to develop an application that works
in
this way.
Regards
Vighneswar
"Marc Gravell" wrote:
>Capturing key strokes for external apps would require Win32 hooks and calls, but is very brittle anyway - for example, how do you know what they are doing at the time? They might not be typing words, but using shortcut / button key presses.
Some apps do this type of thing by hooking into the text control (easier for simple things like notepad). There is a big difference between each of Word, Excel and notepad. You would almost certainly need a different approach for each. But then, since Word and Excel have this built in, why would you bother?
Most times, if software is doing this, it could be construed as malicious. You might get some security issues...
Marc
Thank you James ..
Regards
Vighneswar
"James Hahn" wrote:
Then you will need to insert a low level keyboard hook, and work out for
each keystroke whether the user is typing in an application where you should
be making a suggestion, or some other place (such as changing a file name in
Explorer). It is fraught with difficulty.
See: http://msdn.microsoft.com/en-us/libr...85(VS.85).aspx
LowLevelKeyboar dProc Function http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
SetWindowsHookE x Function
"Vighneswar " <Vi********@dis cussions.micros oft.comwrote in message
news:D6******** *************** ***********@mic rosoft.com...
Thank you Marc ... Actually we need to develop an application that works
in
this way.
Regards
Vighneswar
"Marc Gravell" wrote:
Capturing key strokes for external apps would require Win32 hooks and
calls, but is very brittle anyway - for example, how do you know what
they are doing at the time? They might not be typing words, but using
shortcut / button key presses.
Some apps do this type of thing by hooking into the text control
(easier for simple things like notepad). There is a big difference
between each of Word, Excel and notepad. You would almost certainly
need a different approach for each. But then, since Word and Excel
have this built in, why would you bother?
Most times, if software is doing this, it could be construed as
malicious. You might get some security issues...
Marc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mr. x |
last post by:
Hello,
I want to capture the event when the <ctrl> key is pressed.
How can I do that ?
Thanks :)
|
by: TR |
last post by:
Hi,
We have some code that uses automation to create/manipulate word
documents. This runs in a batch mode, generating dozens of documents in
sequence. The code works great, but while the automation code is working
in word, care must be taken not to "interrupt" it with a keystroke or
mouse-click, otherwise the current selection gets put somewhere its not
supposed to be, and subsequent code will fail. This means that while it
is running,...
|
by: VB Programmer |
last post by:
I have a telnet application with a GUI.
When I hit ESC, CTRL-Z, etc... I want it to perform some custom actions.
How can I capture these keystrokes?
|
by: Gunnar Syren |
last post by:
I'm trying to implement a macro feature in my application by recording
and playing back keystrokes. At first I thought it would be enough to
catch KeyDown in my main form, but I soon realized that I needed to
catch keystrokes in menues and other forms in my app as well.
I realize I can implement a keyboard hook that catches keystrokes
globally, but I only want the keystrokes that are sent to my
application.
Any suggestions on how to...
|
by: TC |
last post by:
Hello,
I need to build a very simple text editor. The requirement is that
the input screen should be divided into 'm*n' cells ('m' rows, 'n'
columns, with each cell of a fixed size). Whenever the user wants to
input text, he will click on one of these cells, and then enter the
text. The text should then be visible inside the cell.
From my very limited knowledge of VB, I plan to use the 'group box'
construct to denote one cell. Now,...
| |
by: laredotornado |
last post by:
Hi,
Does anyone know of any PHP/MySQL based word processors whose code I
can download and install on my server? I have found a number of free
services through Google, but they are all hosted by third parties and I
would like a little more control over managing different user accounts.
Thanks, - Dave
|
by: abcd |
last post by:
Is there a way to capture key strokes on a system using python (other
than pyHook)? can wxPython capture keystrokes for the system (not
just, say a text box)?
thanks
|
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= |
last post by:
I know how to capture a keypress for a windows application, but how would I
go about doing it for a windows service?
Rather than having a form in focus all the time, I would prefer to have
something running in the background. There are option such as having the
form invisible (opacity set to zero) and settings it's location as -200, -200
so that it isn't on the screen, but this isn't the ideal solution.
|
by: Larry Smith |
last post by:
Hi there,
Can someone enlighten me on how to trap a keystroke in my "PropertyGrid"
override. I see functions or properrites at the control or form level
called:
OnKeyDown
OnKeyPress
OnKeyUp
OnPreviewKeyDown
|
by: Vighneswar |
last post by:
Hi All
Can anybody please suggest me in this regard that I need to capture the
keystrokes on all the word processors (Ms Word, Excel .. Etc), text editors
(Notepad .. Etc) and suggest nearer words to the keystrokes. I have the DB
for suggesting the nearer words but wasn't sure on how to capture the
keystrokes on all the word processors, text editors.
Please advise. Thanking you in advance.
|
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...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |