Skip to main content
Participant
July 16, 2021
Answered

Assigning F1 as an action

  • July 16, 2021
  • 4 replies
  • 1543 views

Hi, I'm trying to assign F1 as an action, but it does not come up as available? All the other F keys can be used for actions except that one. I can also assign F1 as a keyboard shortcut, just not an action. Is there any reason for this, and is there possibly a workaround I can use to set F1 as an action somehow?

This topic has been closed for replies.
Correct answer Stephen Marsh

Not sure if this is the best solution, however, it is a solution...

 

Scripts can run an action:

 

Run Action.jsx

Photoshop – Scripting Actions?

Downloading and Installing Adobe Scripts

 

And custom keyboard shortcuts can be applied to a script.

4 replies

Kukurykus
Legend
July 16, 2021

Rewriting in binaries of .atn file the shortcut to F1 doesn't help. It's not displayed on loaded action.

btw r-bin, I wanted to suggest your script, but after forum transition it needs to be corrected.

I tried to do it on my own, but for some reason though it proceeds, the error occurs:

How to stop recording state with JSX code?

Legend
July 16, 2021
Well, probably you need to replace data with data[i] in the loop as usual. I have corrected the code.
Kukurykus
Legend
July 16, 2021

Wow! I'm stupid, I changed that to data[0][i] 🙂 btw, is that okey:  var l3 = (len ) & 0xFF;

Chuck Uebele
Community Expert
Community Expert
July 16, 2021

On Windows, F1 is pretty much the universal button for "Help." So that is most likely why Adobe doesn't let you use it.

Stephen Marsh
Community Expert
Community Expert
July 16, 2021

I didn't test before my previous reply, however, this screenshot shows what happened when I did try to apply F1 as an action keyboard shortcut:

 

camagooAuthor
Participant
July 16, 2021

Yeah, I think the issue is Windows-specific, since my Mac lets me assign the F1 key just fine. The F1 key just isn't an option at all on my Windows computer:

 

 

 

So just to clarify in the script, would I just be replacing actionName and actionSet with whatever names I have, and then assigning that script to keyboard shortcut F1?

Stephen Marsh
Community Expert
Community Expert
July 16, 2021

Yes, it should be that easy!

 

You don't need the .atn extension on the action set, but otherwise the exact spelling and case sensitivity should be the same.

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
July 16, 2021

Not sure if this is the best solution, however, it is a solution...

 

Scripts can run an action:

 

Run Action.jsx

Photoshop – Scripting Actions?

Downloading and Installing Adobe Scripts

 

And custom keyboard shortcuts can be applied to a script.