Skip to main content
Known Participant
February 26, 2013
Question

How can I catch a keyboard input and return another character to Framemaker?

  • February 26, 2013
  • 1 reply
  • 1500 views

Hi,

I want to catch an keyboard input and return another character to Framemaker, like e.g. changing a "y" I type into my computer into a "z" and vice versa or changing the arrow key "right" into "Tab".

For me, the biggest issue in this is to find a solution to catch the keyboard input by ExtendScript for further processing. I tried the Notify-function, but it doesn't seem to work like described in the Scripting Guide and I have no idea how to make it work. I hope that someone here knows a solution for at least the keyboard input issue.

Thank you in advance.

This topic has been closed for replies.

1 reply

4everJang
Legend
February 26, 2013

Are you sure about this? Processing every character while it is pressed on the keyboard using a script might seriously kill the performance of your FrameMaker.

Just trying to bring in some kind of reality check...

Jang

J.KahlAuthor
Known Participant
February 26, 2013

Yes, I am sure about this. But what I will do before further handling is check  if I need the pressed key and abort the script if it is not one of those I need for the issue at hand.

frameexpert
Community Expert
Community Expert
February 26, 2013

I think there is an example of this in the FDK documentation. You will have to modify it to work with ExtendScript, but if it works in the FDK, it should work with ExtendScript.

www.frameexpert.com