Oops. Small error on my part in the script.
If InStr(p_UserSentence, "qwz") <> 0 Then
p_File = "nameofhap.hap"
HalCommands = "<HAPFILE>" & p_file & "</HAPFILE>"
End if
Should have been
If InStr(p_UserSentence, "qwz") <> 0 Then
p_File = "nameofhap.hap"
End if
Downloaded your .uhp file which for some reason ended as .uhd and checked your trigger sentence.Hal swaps things round so "I" becomes "you" and "my" becomes "your".
For example,when talking to Hal you say something like "go to your room",the line in the plugin becomes If InStr(p_UserSentence, "go to my room") <> 0 Then
Couldn't get your hap file to download so renamed one of mine to match and it works for me with the attached uhp
Seems best when changing a plugin to deselct it from the list, shutdown Hal completely,restart Hal and reselect the plugin.
Any haps that worked in Hal5 should work in Hal6 assuming same models are installed as far as I can tell.At least all the ones I used are still ok [
]
Hope this helps
Download Attachment: hapcall.zip1.22 KB