Copy link to clipboard
Copied
I found it impossible to add shortcut keys for the tools extension of an
OK, you could use a JSFL command to select the tool you want.
The command can be triggered with a key of your choice from the keyboard.
I'll use the PolyStar tool as an example, but assume it's any script you want:
1. Go to the Tools folder in Animate and find the PolyStar.jsfl file.
2. Open it and find the configureTool() function.
3. Pay attention to the line
theTool.setToolName("polystar");
and write down the name in the parentheses.
4. Go to the Commands folder in Animate and create a file
...Copy link to clipboard
Copied
you're trying to add shortcut keys to what?
Copy link to clipboard
Copied
keyDown()
function keyDown() {
fl.trace("key " + fl.tools.getKeyDown() + " was pressed");
keyUp()
function keyUp() {
fl.trace("Key is released");
}
}
Copy link to clipboard
Copied
i don't think actionscript is going to help with this question.
Copy link to clipboard
Copied
That's JSFL.
It's used in extensible tools.
https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf#page=46&zoom=100,118,829
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Can you tell me how to use it
Copy link to clipboard
Copied
Please provide more clarity on what type of extension you are interested in:
Copy link to clipboard
Copied
Custom Tools in the toolbar
Copy link to clipboard
Copied
OK, we clarified that we're talking about a JSFL tool.
Now we need to figure out exactly what the problem is:
- You want to bind a custom keyboard shortcut to quick select (activate) the tool in the tool palette.
- Or you developing the tool yourself and want to implement different actions when a certain keyboard keys are pressed
Copy link to clipboard
Copied
I need to bind a custom keyboard shortcut to quickly select (activate) a tool in a tool palette.
Copy link to clipboard
Copied
that was what i thought you were asking.
use edit > keyboard shortcuts > tools > ...
Copy link to clipboard
Copied
The installed tool plug-ins are not displayed in the shortcut keys
Copy link to clipboard
Copied
OK, you could use a JSFL command to select the tool you want.
The command can be triggered with a key of your choice from the keyboard.
I'll use the PolyStar tool as an example, but assume it's any script you want:
1. Go to the Tools folder in Animate and find the PolyStar.jsfl file.
2. Open it and find the configureTool() function.
3. Pay attention to the line
theTool.setToolName("polystar");
and write down the name in the parentheses.
4. Go to the Commands folder in Animate and create a file called SelectPolyStar.jsfl.
5. Write the following code in it:
fl.selectTool("polystar");
and save it.
6. In Animate, open Edit > Keyboard shortcuts > Commands, select SelectPolyStar and assign a keyboard key you want.
Copy link to clipboard
Copied
grateful! perfect solution
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more