Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Simulate a key press (Javascript)

$
0
0

I'm wondering if it's possible to make the program press a specific key (in my case - the escape key which has the key code 27 afaik)?

I'm not going to use this to enter text into a field - but only to trigger the reset of a tool (rotate tool). As far as I know, resetting the rotate tool does not produce a result in the script listener nor does it produce a result when recording an action, which is why I'm looking into doing this with a script instead (by switching to the rotate tool and hitting Esc).

 

Javascript is the prefered language here as I know it the best, but VBscript will be fine as well.


Viewing all articles
Browse latest Browse all 12244

Trending Articles