Hi Quaritexa, do you also need to store some data between function calls so you're looking for a type of persistent storage area, or is it that you want to just package up the code into a separate file so it can be shared?
For the second one, if you put your code into a .js file you should then be able to use #include "library_file.js" at the top of the .js file which will insert that library file into the script before running it.
Then to run it as "instant script" same as inline script code rather than as a command, in your keyboard shortcut put the full path and filename of your .js file into the key board shortcut. Or you can put just the filename with .js file extesion and no path if you put the file into a "scripts" folder which you can make alongside of the commands folder (either in the install folder or appdata).
- Michael
|