tenWare Software

tenScripting Frequently Asked Questions

tenScripting cannot find my script(s) and/or method(s)

There are several things to understand.  First, ALL .vb  and .cs files in the VBscripts and the CSscripts project folders will be scanned.  Even if the file is not included into the Project.  So, only include files in the project folder that belong.  Secondly, each .vb/.cs file that contains your scripts must be included into the project  (menu:  Project/Add Existing File).  It is not enough to be located in the project folder, it must be included into the project.  Finally, the method must be declared as Public for tenScripting to load it, and the parameters must be defined properly for the method's signature to match.  Define it as:

Public Sub Main(ByVal Parms As Object)  for VB

                    or

public void Main(object parm) {    for C#

I added my .vb class file to the project, and defined my class and functions.  When I run tenScripting, it shows my file in the dropdown list, but my method does not appear in the dropdown list.

Make sure that you define your method as Public and with a single parameter described above

Does tenScripting work on 64-bit Windows?

Yes.

I am trying to access a HomeSeer plugin from my script using:
p=hs.plugin("MyPlugin").  My script works okay running in HomeSeer, but it fails in tenScripting indicating the plugin class cannot be found.  Can I create a remote reference to my HomeSeer plugin?

Yes, you can.  You must copy the HSP_ dll file from the plugin into your project folder VSscripts or CSscripts and create a reference to it in your project.  To create a reference, right-click References under the appropriate scripts project in the Solution Explorer and click on Add Reference ....  Select the Browse tab, and then browse to the file you just copied, and click OK.

Can I run tenScripting from a computer not on my local network, from outside my router/firewall?

Yes.  First, you must tell your router/firewall to open and forward to your HomeSeer server a port for tenScripting to use, TCP port 10400. You then specify the external IP address of your router when starting tenScripting, and your router will direct the connection to your HS computer.