Use case: when I am away from home, I'd like to input text in a HStouch text box, press a button and have HS speak out loud the text string.
I have created a text box in HSTOUCH where a user can input text, let's call it "textbox1"
I have created a button that tiggers: "HomeSeer: Run a HomeSeer script with values from elements(s)"
The script is as follows
Public Sub Main(ByVal Parms As Object)
Dim ParmArray() As String
ParmArray = Parms.ToString.Split("|")
hs.Speak(ParmArray(0))
hs.WriteLog("SpeakAndLogMultipleParms", ParmArray(1))
End Sub
(I know this is for two values but should work when only one value is provided, tested manually and it works)
When I enter text in "textbox1" and press the button to trigger the script, what I hear is something like
"System dot string" ?
No errors in Log.
I guess the script is wrong, can you provide assistance?
Thank you!
I have created a text box in HSTOUCH where a user can input text, let's call it "textbox1"
I have created a button that tiggers: "HomeSeer: Run a HomeSeer script with values from elements(s)"
The script is as follows
Public Sub Main(ByVal Parms As Object)
Dim ParmArray() As String
ParmArray = Parms.ToString.Split("|")
hs.Speak(ParmArray(0))
hs.WriteLog("SpeakAndLogMultipleParms", ParmArray(1))
End Sub
(I know this is for two values but should work when only one value is provided, tested manually and it works)
When I enter text in "textbox1" and press the button to trigger the script, what I hear is something like
"System dot string" ?
No errors in Log.
I guess the script is wrong, can you provide assistance?
Thank you!
Comment