intercept keypress? 
Author Message
 intercept keypress?

Ok, It seems highly unlikely that this is possible,
because it would be too good to be true, but I have to ask
anyway :)

Is there ANY way, using either properties of the app, a
table, doc, api calls, or whatever else, to intercept or
at least be notified of keypress events within a word
document / table cell? I can of course get some subset of
the change events under control by watching
WindowSelectionChange, but only some instances hit that
event. I'm trying to do things like prevent them from
fussing with certain portions of the doc, and mandating a
max length to the text in certain table cells, and using
some pretty{*filter*}tactics to approximate the solution i'm
looking for, but if i could just hook the key entry I
would be very happy.

I would resort to form fields or the like, but I need the
user experience to be as normal as possible, including
revision tracking and carriage returns and huge editable
text blocks and such.

Similarly and just as elusive, is there anyway to
intercept a LEFT click? I have some cases in which, if
certain objects have the focus, a dummy click (or
keypress) in the doc space is necessary to release the
focus, and another click to actually fire the
WindowSelectionChange event for real..

Any information greatly appreciated, even if it's just
good trees to bark up! Will gladly provide any more
specific information on request.
thanks,
J



Mon, 12 Jul 2004 08:10:44 GMT  
 intercept keypress?
Dear Josefa,

Sure, write a routine that builds a keybinding intercept for every
key, that builds a separate intercept code routine for every key that
jumps to your code then performs the normal action for that key.

Very tricky, but possible. Of course, your users will suffer an
ENORMOUS performance hit causing them to curse the day you dreamt up
the impossible and will be sure to burn you at the stake for rendering
word unsuable so effectively. Please don't tell them I gave you this
advice or they'll hunt me down too :-)

On Wed, 23 Jan 2002 16:10:44 -0800, "Josefa Kirkland"

Quote:

>Ok, It seems highly unlikely that this is possible,
>because it would be too good to be true, but I have to ask
>anyway :)

>Is there ANY way, using either properties of the app, a
>table, doc, api calls, or whatever else, to intercept or
>at least be notified of keypress events within a word
>document / table cell? I can of course get some subset of
>the change events under control by watching
>WindowSelectionChange, but only some instances hit that
>event. I'm trying to do things like prevent them from
>fussing with certain portions of the doc, and mandating a
>max length to the text in certain table cells, and using
>some pretty{*filter*}tactics to approximate the solution i'm
>looking for, but if i could just hook the key entry I
>would be very happy.

>I would resort to form fields or the like, but I need the
>user experience to be as normal as possible, including
>revision tracking and carriage returns and huge editable
>text blocks and such.

>Similarly and just as elusive, is there anyway to
>intercept a LEFT click? I have some cases in which, if
>certain objects have the focus, a dummy click (or
>keypress) in the doc space is necessary to release the
>focus, and another click to actually fire the
>WindowSelectionChange event for real..

>Any information greatly appreciated, even if it's just
>good trees to bark up! Will gladly provide any more
>specific information on request.
>thanks,
>J

Steve Hudson, Word Heretic
HDK List MVP

Please reply via the newsgroups so that everyone can share


Mon, 19 Jul 2004 20:33:13 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can VBA intercept keypress within Excel ?

2. Intercepting keypresses

3. Intercepting Keypress

4. Assing single keys to macros // intercept keypresses

5. Intercepting Close event through AutoClose macro ( also intercepting FilePrint and FileSave)

6. In vbs exist the keypress event

7. Keypress event

8. Disabling shift keypress that prevents code execution

9. Keypress Counter

10. Capture keypress


 
Powered by phpBB® Forum Software © phpBB Group