Copy link to clipboard
Copied
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?
Not sure if this is the best solution, however, it is a solution...
Scripts can run an action:
Photoshop – Scripting Actions?
Downloading and Installing Adobe Scripts
And custom keyboard shortcuts can be applied to a script.
Copy link to clipboard
Copied
Not sure if this is the best solution, however, it is a solution...
Scripts can run an action:
Photoshop – Scripting Actions?
Downloading and Installing Adobe Scripts
And custom keyboard shortcuts can be applied to a script.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi, thank you!! It works pretty much the way you said, except the only thing is that when I execute the script it works ok, but then these windows pop-up right after. I can close them and that's fine, but I plan on using this action a lot and I'd rather not have to exit out of these windows all the time.
Copy link to clipboard
Copied
Oh wait nevermind! I named something incorrectly and it works now, thanks again!
Copy link to clipboard
Copied
On Windows, F1 is pretty much the universal button for "Help." So that is most likely why Adobe doesn't let you use it.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Wow! I'm stupid, I changed that to data[0][i] 🙂 btw, is that okey: var l3 = (len ) & 0xFF;
Copy link to clipboard
Copied
Well yes. This is the least significant byte. No shift required.
Brackets for beauty, or I forgot to remove when copying lines. : )
Copy link to clipboard
Copied
You deserved the gift - check the PM.