Functions for shortcuts
All  1-5  6-7

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  vector illustrator (QUARITEXA)
9687.7 In reply to 9687.6 
=D
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-5  6-7