www.homeseer.com    
 

Go Back   HomeSeer Message Board > Developer Support > Scripts & Plug-Ins:Development and Libraries > Script & Plug-In Development

Script & Plug-In Development Discuss scripting for HomeSeer and general VBScript assistance. Use this forum to post incomplete scripts, script snippets or code samples.

Reply
 
Thread Tools Display Modes
  #1  
Old September 19th, 2002, 09:01 PM
klandingham
Guest
 
Posts: n/a
Hi folks,

I've been trying to write some simple scripts to get started, by using VB6 for its editor and debugger. I started with an empty VB exe project, and added a reference to the HomeSeer ActiveX object. For testing within the VB environment, I'm using:

Dim hs As HomeSeer.Application
sub main()
Set hs = New HomeSeer.Application
...

I can call most HomeSeer methods fine, but the following doesn't seem to work. Assuming that a global variable named "bogus" doesn't exist, if I run the following:

Status = hs.SaveVar("bogus", 23)

the value of Status is an empty string which, according to the HS docs I have, means everything went well. It shouldn't have, since "bogus" doesn't exist. If I move that same line into a script run directly from HomeSeer, the value of Status is "Name not found", which is what I would suspect.

Any ideas? Thanks.
Reply With Quote
  #2  
Old September 20th, 2002, 07:40 AM
zimmer62's Avatar
zimmer62 zimmer62 is offline
Super Seer
 
Join Date: Jan 2002
Location: Lansing, MI, USA
Posts: 1,831
I had the same problem last night when I was tring to get ultra_view2 to work... and I traced it down the exact same problem.

When I was testing the script, it just wouldn't get past that.

The FIX! :

I added my localhost to the Trusted Sites in the internet explorer options. I'm assuming that it's an activeX security issue and for whatever reason your computer isn't prompting you... When I made this change, my computer prompted me and everything worked great.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:03 AM.


Copyright HomeSeer Technologies, LLC