Zabaware Forums > Programming using the Ultra Hal Brain Editor

checking e-mail accounts

<< < (2/2)

Art:
@ Spitfire and all,

If you use another email program like Thunderbird, simply substitute that program's location in the script in place of the Outlook program.
Works fine in Ultra Hal 7 - Save it in the Ultra Hal 7 Folder
==== Example ====

Rem Type=Plugin
Rem Name=Email
Rem Author=Spitfire
Rem Host=All

Rem PLUGIN: PLUGINAREA1

   If InStr(1, UserSentence, "check email", 1) > 0 Or InStr(1, UserSentence, "check e-mail", 1) > 0 Or InStr(1, UserSentence, "open email", 1) > 0 Or InStr(1, UserSentence, "open e-mail", 1) > 0 Then

   EmailMin6 = HalBrain.RandomNum(5)
   
   Select Case EmailMin6      
      Case 1  EmailMsg6 = "Opening E-mail now." & vbCrLf
      Case 2  EmailMsg6 = "Yes." & vbCrLf
      Case 3  EmailMsg6 = "Right away." & vbCrLf
      Case 4  EmailMsg6 = "Email Opened." & vbCrLf
      Case 5  EmailMsg6 = "E-mail is opening." & vbCrLf
      End Select
   
   'Change outlook install location
   HalMenu.HalCommand "<RUNPROG>" & "C:\Program Files (x86)\Mozilla Thunderbird\Thunderbird.exe" & "</RUNPROG>"
   GetResponse = EmailMsg6
   ShortPhrase = ""
   LongPhrase = ""
   HalBrain.ReadOnlyMode = True

   End If   

Spitfire2600:
Yep, just like that. ^ ^

Spitfire

LiFeTimeGamer:
Art, shouldn't this "Email Opened."  be "E-mail Opened." ???

Don't think HAL will say email correctly...  :D

Art:
LifeTimeGamer,

Whatever floats your boat. If you want to change it to better suit your needs then, by all means, do so.

I did not write this script. I merely substituted the path for opening Thunderbird.


Actually if one has selected the Plug-in for Run Programs By Name, all one has to say is: Open Thunderbird or Run Thunderbird.
It will accomplish the same thing.

Many years ago, Hal used to be able to check for emails as a regular part of its programming. I think that was back in version 5.0 or thereabouts.


Navigation

[0] Message Index

[*] Previous page

Go to full version