Discussion:
Responding to Keystrokes
(too old to reply)
Jezebel
2005-04-16 03:50:36 UTC
Permalink
No (easy) way to do this with VBA. Word does not provide keystroke events.
It is technically feasible by making API calls to monitor the system message
queue, but you really don't want to go there. Make do with Autotext and
Autocorrect.
I'm trying to write an application that will suggest word completions
based
on a dictionary, however, I need a way to determine what the user is
typing.
I'm looking for a way to intercept or respond to regular key strokes in
the
active document of Word. Does anybody know how to do this. I can't seem
to
find any relevent events that would trigger it like KeyPress or KeyUp.
tbannist
2005-04-21 19:09:02 UTC
Permalink
Thanks, I'll just have to hook the keyboard, then. I don't think my program
could work with the limitations of Autotext and Autocorrect.
Post by Jezebel
No (easy) way to do this with VBA. Word does not provide keystroke events.
It is technically feasible by making API calls to monitor the system message
queue, but you really don't want to go there. Make do with Autotext and
Autocorrect.
I'm trying to write an application that will suggest word completions
based
on a dictionary, however, I need a way to determine what the user is
typing.
I'm looking for a way to intercept or respond to regular key strokes in
the active document of Word. Does anybody know how to do this. I
can't seem to find any relevent events that would trigger it like
KeyPress or KeyUp.
Loading...