Capturing a keystroke from within a window?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
cswaim
Posts: 2
Joined: November 3rd, 2012, 12:43 pm

I've got an idea for a script and I'm not sure if it's even possible in AE. I want to open up a new window and whenever the window is active, the user, using certain keystrokes, can do different things to selected layers, etc. I can figure out the layer operation logic but I'm not sure if AE even has a way to capture keystrokes within the code.

Is there a way to do that (similar to document.onkeypress)? Any help with be greatly appreciated!!!
Klustre
Posts: 21
Joined: July 27th, 2011, 2:53 am

Have a look at page 75 from the Script UI for Dummies pdf: http://www.kahrel.plus.com/indesign/scriptui.html
And page 119 of the javascript tools guide cs6. The thing you want to look for is addEventListener.

Good luck! Oh, and please post your progress. Very much interested if this works!
Post Reply