473,785 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Capture keystrokes on all word processors - 190908

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
Sep 19 '08 #1
4 2316
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
Sep 19 '08 #2
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
Sep 21 '08 #3
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
Sep 21 '08 #4
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

Sep 23 '08 #5

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

Similar topics

3
2538
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,...
4
1366
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?
3
5053
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...
2
5030
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,...
2
1777
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
0
1362
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
4
13095
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.
8
9643
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
4
1034
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.
0
9481
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
10336
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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...
0
8978
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...
0
6741
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();...
0
5383
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...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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
2
3655
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.