Attach Script Examples

Comments

3 comments

  • Avatar
    Jon Elliott

    You shouldn't need to reset the processor when carrying out an attach as it rather defeats the object of attaching.

    Which device is it that you are targeting?

    0
    Comment actions Permalink
  • Avatar
    Scott Coleman

    I had a minor epiphany: In the "Target Script Options" settings where it has entry blanks for the various scripts, it appears that some of them want a script filename, e.g. "MyTargetScript.js" and some of them want a function name, e.g. "OnAttach()," which is the name of a function inside one of the script files.

    I found that if I added a function named OnAttach() and put it into MyTargetScript.js, and then entered OnAttach() into the "Attach Script" entry blank, the error goes away and everything seems to work. Now maybe I missed it, but I didn't see any of this explained anywhere in the documentation.

    0
    Comment actions Permalink
  • Avatar
    Jlaiosa

    I am new to this CrossWorks.  Where does one find "Target Script Options"?

    0
    Comment actions Permalink

Please sign in to leave a comment.