Functions for shortcuts

 From:  Michael Gibson
9687.6 In reply to 9687.5 
Hi Quaritexa, so for something like that:

code:
1=script: hint('first string'); some code;
2=script: hint('second string'); another code;
3=script: hint('third string'); some more code;

You would create 4 text files, something like this:

File hint.js will contain:
  function hint( val )
  {
     // Do something
  }

File Key1.js will contain:
  #include "hint.js"
  hint('first string');
  some code;

File Key2.js will contain:
  #include "hint.js"
  hint('second string');
  another code;

File Key3.js will contain:
  #include "hint.js"
  hint('third string');
  some more code;

Your shortcut keys setup would go like this:
  1=Key1.js
  2=Key2.js
  3=Key3.js

- Michael