473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1017
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
LowLevelKeyboardProc Function
http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
SetWindowsHookEx Function

"Vighneswar" <Vi********@discussions.microsoft.comwrote in message
news:D6**********************************@microsof t.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
LowLevelKeyboardProc Function
http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
SetWindowsHookEx Function

"Vighneswar" <Vi********@discussions.microsoft.comwrote in message
news:D6**********************************@microsof t.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
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 :)
3
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...
4
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
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...
2
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...
2
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...
0
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
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...
8
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...
4
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.