Announcement

Collapse
No announcement yet.

tenScripting 3.22 Now Available

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

  • retiredjeff
    replied
    Got it. Now need to keep going and learn uses for scripting.
    Thank you

    Leave a comment:


  • tenholde
    replied
    Let me know how it goes. Follow this:. http://tenholder.net/tenWare2/tenScr...tallation.aspx

    Leave a comment:


  • retiredjeff
    replied
    don't know what I did. Maybe I should uninstall everything and start from scratch following the vids.

    Leave a comment:


  • tenholde
    replied
    From your post, looks like your VS solution is goofy. CsScripts looks like it is the solution instead of tenscripting. Did you first load and run just the distributed solution files? Then add your script files to the CsScripts project?

    Leave a comment:


  • retiredjeff
    replied
    Followed vids and got to the start button. Did not get any of the errors you showed but got a visual studio error. Click image for larger version

Name:	image.png
Views:	26
Size:	133.0 KB
ID:	1577354

    Leave a comment:


  • tenholde
    replied
    Also, make sure you have read all of the topics located at:
    http://tenholder.net/tenWare2/tenScr...4/default.aspx


    Leave a comment:


  • tenholde
    replied
    While these videos are for version 3, they should give you an idea of how to get this all working.
    http://tenholder.net/tenWare2/tenScripting/Videos.aspx

    Let me know if this helps

    Leave a comment:


  • retiredjeff
    replied
    Thank you. Take the day off and enjoy.

    Leave a comment:


  • tenholde
    replied
    Guests arriving for TG, will try and record a video for you this evening

    Leave a comment:


  • retiredjeff
    replied
    Visual Studio v 17.4.1 HomeSeer HS4 ZEE S2 (Upg from HS3ZS2) Edition 4.2.16.0 (Linux) The download file was tenscripting 4_12. I have it unziped but don''t know if it is installed. When I click on open projects or solutions in visual studio, it points to the tenscripting4 file folder containing the unziped files. I was referring to tenscripting program window.

    Leave a comment:


  • tenholde
    replied
    Originally posted by retiredjeff View Post
    Have visual studio and tenscript4 installed. I can get C# to work and write simple code. How do I get the Homeseer scripting window open?
    Jeff​
    What version of Visual Studio are you using. What version of HS, and what version of tenScripting.

    Are you able to write simpe C# code via tenScripting4? What do you mean by HomeSeer scripting window?

    Leave a comment:


  • retiredjeff
    replied
    Have visual studio and tenscript4 installed. I can get C# to work and write simple code. How do I get the Homeseer scripting window open?
    Jeff​

    Leave a comment:


  • mterry63
    replied
    Thanks. I had actually saved that code and considered it in this problem, but I struggle with how this would work in the context of both running in tenscripting3 or running directly in an event in HS3. I'm guessing when running natively as executed by an event, the "remote script" code isn't necessary. Not sure it would make sense as a universal solution. I'll keep thinking about it. I may just eliminate HomeSeer object functions from the DLL code.

    Leave a comment:


  • tenholde
    replied
    https://forums.homeseer.com/forum/de...s4-fails/page3

    Leave a comment:


  • mterry63
    replied
    Originally posted by tenholde View Post

    The .NET way to reuse code is to compile the common code into a separate .dll and then add a reference to it. This is not as hard as it sounds.

    tenholde I worked through how to compile a personal dll with common code and can reference it. I do have one problem I'm not experienced enough to work through and was hoping you could provide some advice. In my DLL any code that references hs.mumble calls fail as the hs object isn't initialized. I can see that initializing the hs object is done automatically in tenScripting3 but I can't quite figure out how to migrate that to my DLL. Can you suggest some code that will work?

    Naturally anyone else who has a potential solution can chime in as well, I'd appreciate the assist. Thanks in advance!

    Leave a comment:

Working...
X