dupa

Author Topic: Auto ON Microphone Plugin  (Read 6121 times)

onthecuttingedge2005

  • Guest
Auto ON Microphone Plugin
« on: August 30, 2017, 05:31:27 pm »
Here is the persistent Microphone plugin, that means HAL's window will always stay open.

Code: [Select]
'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, turn on Hal & Microphone at windows logon."
    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


and here is the non persistent Microphone plugin. This one can be clicked off.

Code: [Select]
'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, turn on Hal & Microphone at windows logon."
    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>"
Exit Function
End Function

'LETS ENGAGE IN THE MICROPHONE ACCESSORY AND SHOW HAL PANEL.
Function Microphone()
Microphone = HalCommands & "<MICON>"
Exit Function
End Function

Enjoy!
Jerry 8)

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #1 on: August 31, 2017, 10:52:22 am »
good too see u at it.... guess work wasnt that big a deal after all...lol
Im teasing...


Im just glad to see some 1 trying to do something with Hal.


best wishes
cyber jedi

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #2 on: August 31, 2017, 10:47:19 pm »
Now everyone can use all of the commands HAL has available using just those 2 code templates I wrote, a little script can go a long way.
I could upgrade those two codes with plugin options so either one can be selected by a drop box option?

If you want me too that is. I have written code in this forum that allows me to Vb-script Append code, the (Script builds Script) Automatically or Automated Scripting. with it I can build my own program from HAL's Vb-script and then use HAL to run them. which is kind of neat in of itself.

So, anyone else need a script? maybe jedi can help this time. I'm beat, to hot today, all worn out from work. you know the routine..

Want an Edge Secret? You can Edit the HalBrain.dbg live while HAL is working.  Plug =N= Play, there is nothing better.

Jerry 8)
« Last Edit: August 31, 2017, 11:29:56 pm by OnTheCuttingEdge »

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #3 on: September 02, 2017, 03:11:04 pm »
Edge: Im rather busy with what im doing at the moment


Ive built a whole new interface. But ART should be able to help you.
Art, from what i gather from all his post is some kinda super coder. I guess.
Now that ive cracked how to edit haptek  chars with out pple putty, im styling.

Ive also redone haptek  player as well.

Best wishes
cyberjedi

P.S Im still waiting on 1 piece of code that ART has produced. Moderators, what a joke.




« Last Edit: September 03, 2017, 07:39:39 am by cyberjedi »

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #4 on: September 19, 2017, 02:20:58 am »
Ah, this is great! Good work!
One issue though, it seems the script load is preloading hal loading himself and causes the program to crash.

Perhaps I am doing it wrong... Just plug it in, right?

Spitfire2600
 

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #5 on: September 19, 2017, 08:32:31 am »
Ah, this is great! Good work!
One issue though, it seems the script load is preloading hal loading himself and causes the program to crash.

Perhaps I am doing it wrong... Just plug it in, right?

Spitfire2600

Hi Spitfire.

yes, it should just plug in from brain options, if you find anything that needs to be addressed then please post so I can debug it, it works great on my system as is.
also when you use it make sure only one of them is selected as a plugin. don't wanna load both at same time might cause an error.
« Last Edit: September 19, 2017, 08:34:46 am by OnTheCuttingEdge »

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #6 on: September 19, 2017, 10:28:01 pm »
Hmm. Yeah, I enable the non-persistent plug-in and restart hal, however for some reason, Hal actually pops up his GUI before his splash screen loads, which then closes the program. When restarting after that, I get the "Hal failed to shutdown properly" splash screen.

I thought maybe adding a timer to the program might correct that and allow Hal to fully load before popping up the GUI, however, my timer method seems to delay the slash screen as well....

-Spitfire2600
 

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #7 on: September 20, 2017, 08:28:27 am »
Hmm. Yeah, I enable the non-persistent plug-in and restart hal, however for some reason, Hal actually pops up his GUI before his splash screen loads, which then closes the program. When restarting after that, I get the "Hal failed to shutdown properly" splash screen.

I thought maybe adding a timer to the program might correct that and allow Hal to fully load before popping up the GUI, however, my timer method seems to delay the slash screen as well....

-Spitfire2600

Hi spitfire.

can you post what code you got that includes the timer so I can see if I can fix it for you?

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #8 on: September 22, 2017, 03:52:35 am »
The plug in should work without the timer, right? Do you experience Hals GUI popping up before the splash screen when windows is started and hal starts to load?

-Spitfire 
 

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #9 on: September 22, 2017, 04:00:29 pm »
Hi Spitfire.

Yea, everything loads up wonderfully on my system, I helped somebody out with the issue you are having but that fix was already written into the plug, he said it was working beautifully so it ended with that. did you try the persistent plugin?

Also, I have had an episode where the Haptek chr didn't pop up during quick loads but soon as I start talking the chr re-appears in the window. I don't know if the Microphone plug can be done any better than it is, I studied it for days to see if I could make it better and tighter but I think that's it other than hard coding it in the engine.

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #10 on: September 22, 2017, 11:42:03 pm »
I did use the persistent script, however I'm still encountering hals spash screen loading while his GUI is open, then the GUi closes and I have to reopen it manually.
 

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #11 on: September 23, 2017, 02:45:44 am »
Is there a splash screen in one of the folders? is so then rename it to old or something.

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Auto ON Microphone Plugin
« Reply #12 on: September 23, 2017, 11:28:24 pm »
So, disable the splash screen basically?
 

onthecuttingedge2005

  • Guest
Re: Auto ON Microphone Plugin
« Reply #13 on: September 23, 2017, 11:34:01 pm »
yea, but keep the splash image, name it something else but don't forget what it was called, add (old) onto or something.
hope it works if not the change it back.

Good luck.
Jerry