12
« on: February 08, 2019, 01:28:35 pm »
Hi guys,
I'm trying to start Hal with his microphone enabled. My goal is to be able to just start talking to Hal when Windows boots up. The code below is what i'm working with thanks to OnTheCuttingEdge2005. Currently Hal will pop up on Windows start up with his mic enabled however a few seconds later he minimizes to the tray, when this happens the mic is disabled, and when i click on the tray icon to open Hal the mic is still disabled. Any thoughts? I'm using dragon 12.5 as my speech engine.
'Rem Type=Plugin
'Rem Name=Auto ON Microphone
'Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005
'Rem Host=Assistant
'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
lblPlugin(0).Caption = "Auto ON Microphone"
lblPlugin(0).Move 120, 10, 3300, 1000
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
Rem PLUGIN: SCRIPT_LOAD
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'LETS LAUNCH THE MICROPHONE ON START UP OF WINDOWS.
Script_Load = ShowHal() & Microphone()
Rem PLUGIN: FUNCTIONS
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'SHOW HAL'S PANEL FOR MIC COMMAND SCRIPT LOAD.
Function ShowHal()
ShowHal = HalCommands & "<SHOWHAL>"
End Function
'LETS ENGAGE IN THE MICROPHONE ACCESSORY AND SHOW HAL PANEL.
Function Microphone()
Microphone = HalCommands & "<MICON>"
Exit Function
End Function