Announcement

Collapse
No announcement yet.

Basic Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Basic Script

    Hi Guys,

    Trying to get into some basic scripting. I've got no real scripting experience and learn by trial and error. So, I thought I would start with something basic.

    Created a file called test.vb

    In that file I entered..

    Sub Main()
    hs.writelog("Test", "Test")
    End Sub

    Saved it then added and event to run it. As soon as I do, I get this error..

    VB.Net script exception(0), re-starting: Object reference not set to an instance of an object.

    So what am I doing wrong already? :P

    Thanks

  • #2
    Originally posted by MFULLER View Post
    Hi Guys,

    Trying to get into some basic scripting. I've got no real scripting experience and learn by trial and error. So, I thought I would start with something basic.

    Created a file called test.vb

    In that file I entered..

    Sub Main()
    hs.writelog("Test", "Test")
    End Sub

    Saved it then added and event to run it. As soon as I do, I get this error..

    VB.Net script exception(0), re-starting: Object reference not set to an instance of an object.

    So what am I doing wrong already? :P

    Thanks
    Sub Main(var)
    hs.writelog("Test", "Test")
    End Sub
    Regards,
    Michael

    HS3, W10 Home, HSTouch, W800, Z-Stick+

    Comment


    • #3
      Ahh, so simple in hindsight. Thank you

      Comment

      Working...
      X