www.homeseer.com

Go Back   HomeSeer Message Board > HomeSeer > Home Automation Software > HomeSeer HS2™ Specific

HomeSeer HS2™ Specific General discussion about HomeSeer HS2.

Reply
 
Thread Tools Display Modes
  #1  
Old August 1st, 2009, 04:44 AM
Simonk Simonk is offline
Seer Deluxe
 
Join Date: Jul 2001
Location: Stevenage, Hertfordshire, UK
Posts: 435
Question Using " within hs.Launch parameters

I'm having trouble tryiny to use a command in a vb.net script that uses "

This is what I have tested with a event :

Apllication Path : C:\Program Files\HomeSeer HS2\LedDisplay

Parameters : -NoServer -NoGui -DeleteRegex "" -SendText "Testing Still 1,2,3,4,5,6,7,8,9,0"

I want to put this into a script rather than having a seperate event and also want to use the variable PlayList in the Parameters.

I've tried to use the following line in my script and it runs without any errors but doesn't do anything !

hs.Launch("C:\Program Files\HomeSeer HS2\LedDisplayCtrl\LedDisplayControllerGui.exe", "-NoServer -NoGui -DeleteRegex -SendText """ & PlayList & """ ")

I'm thinking that it is something to do with the " on the -SendText commands, it wants -sendtext "text to send".

Any help appreciated.

Simon
Reply With Quote
  #2  
Old August 1st, 2009, 06:01 AM
jon00's Avatar
jon00 jon00 is offline
OverSeer
 
Join Date: Jan 2002
Location: London UK
Posts: 5,384
Default

This is always a difficult issue and know the problem. I noticed you omitted the 2 quotes after -DeleteRegex which may be required.

Try

hs.Launch("C:\Program Files\HomeSeer HS2\LedDisplayCtrl\LedDisplayControllerGui.exe", "-NoServer -NoGui -DeleteRegex " & """" & " -SendText """ & PlayList & """ ")
__________________
Jon

Reply With Quote
  #3  
Old August 1st, 2009, 06:21 AM
Simonk Simonk is offline
Seer Deluxe
 
Join Date: Jul 2001
Location: Stevenage, Hertfordshire, UK
Posts: 435
Default

Quote:
Originally Posted by jon00 View Post
This is always a difficult issue and know the problem. I noticed you omitted the 2 quotes after -DeleteRegex which may be required.

Try

hs.Launch("C:\Program Files\HomeSeer HS2\LedDisplayCtrl\LedDisplayControllerGui.exe", "-NoServer -NoGui -DeleteRegex " & """" & " -SendText """ & PlayList & """ ")
That sorted it

Thanks
Reply With Quote
Reply

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 Off

Forum Jump


All times are GMT -4. The time now is 09:21 PM.


Copyright 1998-2008 HomeSeer Technologies, LLC