dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - peace

Pages: 1 2 [3]
31
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: February 10, 2016, 09:44:02 pm »
i thik you could do that with the code i wrote and just change it around a bit for a different, all my code really does is put hals responce into the clipboard and then runs a vbs. file to open a program and paste the clipboard

32
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: February 03, 2016, 12:08:05 am »
http://s000.tinyupload.com/?file_id=66063270134403624027


this is a plugin as well as a .vbs and a .exe to make hals responce sound like r2d2 beeps
its a bit buggy but its just for fun
thanks for the help figuring this one out
was fun

33
General Discussion / Re: grabbing hals output
« on: February 03, 2016, 12:06:43 am »
http://s000.tinyupload.com/?file_id=66063270134403624027


this is a plugin as well as a .vbs and a .exe to make hals responce sound like r2d2 beeps
its a bit buggy but its just for fun
thanks for the help figuring this one out
was fun

34
General Discussion / Re: grabbing hals output
« on: February 02, 2016, 12:01:41 am »
how would i get this to work as a plugin ?


  MsgBox (GetResponse)

how do i write the plugin so the command goes to the right part of the brain?

35
General Discussion / Re: grabbing hals output
« on: February 01, 2016, 08:37:40 pm »
mission accomplished sort of
its not including user name and other variables but i inserted in default brain the following

    'PROCESS: REVERSE CERTAIN CONTRACTIONS AND OTHER SUBSTITUTIONS
    'Standardizing on contractions can make Hal sound conversational.
    'However, certain sentence constructions don't work well
    'if expressed as contractions.  For example:
    '"I don't know where it is" becomes "I don't know where it's."
    'For another example, "That's how he is" becomes "That's how he's."
    'To solve these types of cases
    'we attempt to modify certain contractions, words, and phrases
    'at the end of this function, now that Hal's thinking is done.
    GetResponse = HalBrain.HalFormat(GetResponse)
    GetResponse = HalBrain.ProcessSubstitutions(GetResponse, "corrections")
    MsgBox (GetResponse)
    'PROCESS: CALL USER BY CORRECT NAME
    'If the user has chosen a nickname or temporary name, call user by that
    'otherwise call the user by the username chosen by the host application
   
my line # 2144  MsgBox (GetResponse)  sends hals responce to a messagebox this could be ported to another program for example

                R2D2 Translator

         (c) Copyright 2008 Roger Meier
              All rights reserved
             
              roger.meier@pobox.com
         http://freeware.the-meiers.org

36
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: February 01, 2016, 08:37:15 pm »
mission accomplished sort of
its not including user name and other variables but i inserted in default brain the following

    'PROCESS: REVERSE CERTAIN CONTRACTIONS AND OTHER SUBSTITUTIONS
    'Standardizing on contractions can make Hal sound conversational.
    'However, certain sentence constructions don't work well
    'if expressed as contractions.  For example:
    '"I don't know where it is" becomes "I don't know where it's."
    'For another example, "That's how he is" becomes "That's how he's."
    'To solve these types of cases
    'we attempt to modify certain contractions, words, and phrases
    'at the end of this function, now that Hal's thinking is done.
    GetResponse = HalBrain.HalFormat(GetResponse)
    GetResponse = HalBrain.ProcessSubstitutions(GetResponse, "corrections")
    MsgBox (GetResponse)
    'PROCESS: CALL USER BY CORRECT NAME
    'If the user has chosen a nickname or temporary name, call user by that
    'otherwise call the user by the username chosen by the host application
   
my line # 2144  MsgBox (GetResponse)  sends hals responce to a messagebox this could be ported to another program for example

                R2D2 Translator

         (c) Copyright 2008 Roger Meier
              All rights reserved
             
              roger.meier@pobox.com
         http://freeware.the-meiers.org

37
General Discussion / Re: grabbing hals output
« on: February 01, 2016, 12:36:02 am »
sorry i forgot to remove Exit Function it should look like this

Rem Type=Plugin
Rem Name= are you sure
Rem Author= Peace
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------

Sub OptionsPanel()
lblPlugin(0).Caption = "This plugin will output hals responce to a messagebox"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub


If UltraHal  = "" Then
MsgBox ("123")
End If


this outputs 123 in a message box at the instant you check it on the plugin selection in general options

38
General Discussion / grabbing hals output
« on: February 01, 2016, 12:29:33 am »
i am trying to get an additional messagebox to pop up as hal responds
i actually want to pipe hals output to another program the only piece im missing is how to get hals output into a message box i had a rough start that worked a few times with no errors but it only worked once and when i restarted hal it no longer worked.... can you guys help? heres a plugi that outputs a message box but only at the time you check the plugin box thats as far as i can get without seeing the source code

Rem Type=Plugin
Rem Name=grab hals output
Rem Author= Peace
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------

Sub OptionsPanel()
lblPlugin(0).Caption = "This plugin will output hals responce to a messagebox"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub


If UltraHal  = "" Then
MsgBox ("123")
Exit Function
End If



once i can get this far i can use hals output for different voices

39
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: January 31, 2016, 10:22:18 pm »
actually what i am trying to do is to have hals out put go to a message box each time he responds to a user i want his output to be displayed as normal but also in a message box, i accomplished this with the code i posted earlier but it repeated three times and when i tried to restart hal it failed to work so i know its something close, as to the   ""    i think that means any value not just empty value

40
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: January 31, 2016, 05:56:53 pm »
i got the messagebox to appear but only once and it sppears when i check the plugin box not whan hal responds, i need a way for the getresponce code to trigger the message box at each responce i didnt get an error code but its not working correctly

41
Programming using the Ultra Hal Brain Editor / Re: grabbing hals output
« on: January 31, 2016, 05:25:42 pm »
msgbox getresponce is not working i tried this as well
heres my code but its not working it just outputs once when you add the plugin

Rem Type=Plugin
Rem Name= are you sure
Rem Author= Peace
Rem Host=Assistant

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------

Sub OptionsPanel()
lblPlugin(0).Caption = "This plugin will output hals responce to a messagebox"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub



 If UltraHal = "" Then
        Msgbox ("Please say something.")
       
    End If

42
Programming using the Ultra Hal Brain Editor / grabbing hals output
« on: January 31, 2016, 02:42:29 am »
is there a simple script to get hals output on a message box

example  Msgbox (ULTRAHAL)

with a new message box for each responce

im going somewhere with this but i cant figure this piece of the puzzle

Pages: 1 2 [3]