Advertisement
Sanwi

Macro Mod "Method" (recently improved!)

Jul 23rd, 2014
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // Execute method
  2. // This is the part you put in your main script
  3.  
  4. exec(script.txt,"script","param1","param2","param3");
  5. do;
  6. wait();
  7. until(@methodcomplete);
  8. unset(@methodcomplete);
  9.  
  10. // End execute method
  11.  
  12.  
  13.  
  14. // script.txt
  15.  
  16. // actual code here
  17. // Use $$[X] to reference parameters, starting with $$[1]
  18.  
  19. set(@methodcomplete);
  20. stop();
  21.  
  22. // end script.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement