send string to com port using outlook 2003 rules
I am working on a text message garage door opener. yes i know a little over the top. I bought a usb 8 channel relay. to turn on the relay you send a string "1" to turn on channel one and "2" to turn on channel two and so on. What i'm trying to do is use the rules wizard to run a script when it recieves a text message with a password in the body to run the script and open the door. so what i need is it to send "1" then at least a one second pause then another "1" to turn off the relay like a momentaty switch.
And ideas on where to start?
Thanks for any help
Countryboyz
Re: send string to com port using outlook 2003 rules
is the device a usb to serial adaptor?
you can shell to dos, copy textfile to com1:
i assume, you can point a rule to a vba procedure
i hope you do not text while you are driving!!!
Re: send string to com port using outlook 2003 rules
Just wanted to say thanks for the input. I figured out a way for it to work! i created a app in VB 2008 and compiled it to an .exe in the rules wizard for outlook 2003 i have it set to run the .exe when it receives an email sent from only my phone with a password in the body. it opens the garage door and then you send another to close it. i might try to add somthing for it to send me a pic form a webcam to verify door position. now i have to figure out what to use the other seven relays for lol! any input would be great!!!:wave:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
SerialPort1.Open()
SerialPort1.Write("1")
Threading.Thread.CurrentThread.Sleep(1000)
SerialPort1.Write("1")
Me.Close()
End Sub
End Class