Announcement

Collapse
No announcement yet.

hs.launch not working

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

    hs.launch not working

    OK, another day, another problem. Someone want to tell me what's wrong with this syntax?

    Code:
    hs.Launch("speaker.exe","","c:\program files\homeseer 2")
    Cuz when I put it in the startup.txt script, it generates this error:
    Code:
    5/2/2006 2:57:34 PM  - Error - Running script, script run or compile error in file: startup.txt1044:Cannot use parentheses when calling a Sub in line 7 More info: Cannot use parentheses when calling a Sub

    #2
    Frank:

    You do seem to have your problems :-)

    Try the following...


    hs.Launch "speaker.exe","","c:\program files\homeseer 2" </pre>
    Don

    Comment


      #3
      I shall try that...though why it would change, I don't know. hs.launch is a function that returns a long. Functions with returns take parens. But I'll try it.

      Comment


        #4
        You only use parentheses when you are trying to pull a value:

        x = hs.Launch("speaker.exe","","c:\program files\homeseer 2")


        ~Bill

        Comment


          #5
          Gothcha. Thanks, it works now. Of course, I still have scripting problems, ongoing in another thread.

          Comment

          Working...
          X