Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: VBS Script Server Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Anthony
Newbie
Newbie


Joined: January 01 2010
Location: United States
Online Status: Offline
Posts: 8
Posted: July 29 2010 at 22:09 | IP Logged Quote Anthony

I am new to PH and I am trying to create a VB script to run my EZFlora Sprinkler system. Having trouble, I created a very basic script to troubleshoot my problems. I am having a problem with the script server. When I execute my script, I get the following error in the Multi Editor window:

Initialize Script Server Error
     An error occurred while initializing the Script Server.
           Source:
           Error Number: 0
           Description:
           Line: 0
           Column: 0
           Text:

Script Evaluation
     Execution time: 0.015 seconds.
     *** Error in Script!
     Error Number: 2
     *** INITIALIZE ERROR - Filename: powerhome.wsh.scripteditor.tempfile.txt
     Function: sub1
     Source:
     Error Number: 0
     Description:
     Line: 0
     Column: 0
     Text: ***

This file "powerhome.wsh.scripteditor.tempfile.txt" exists in my c:\program files\powerhome directory. When I open it, it contains the script. Here is a copy of the script.

Sub sub1()
     ph.usermessage("user message from vb script")
End Sub

Thanks
Back to Top View Anthony's Profile Search for other posts by Anthony
 
Anthony
Newbie
Newbie


Joined: January 01 2010
Location: United States
Online Status: Offline
Posts: 8
Posted: July 29 2010 at 22:23 | IP Logged Quote Anthony

Forget it. I found that I needed to set the Script server in Setup/Preferences.

Thanks anyway.
Back to Top View Anthony's Profile Search for other posts by Anthony
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum