TF2 Monitoring program (http://hackaday.com/2009/12/30/tf2-kill-counter-binary-style/). How does the (Visual Basic) Program read Console?
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$3 Answers
First off, he has the source avaial here: http://www.filefront.com/15246085/ICF-Arduino-Kill-Counter.rar/
You should be able to load up the project and see exactly what he is doing...
Heres my take on it.
1. You can query a halflife/halflife2 server via a network/socket connection and get back the data on the users in the server, how long they have been connected, what their kills/deaths are...etc.
2. You could then take this data and manipulate it in any way you wish. In this example he is using the USB connection to the arduino as a serial connection allowing him to pass data from the small serial app to the arduino to turn lights on/off based on how many kills he has.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$You should be able to redirect a console application's output by doing something like the below:
Dim myProcess as new process
myProcess.startinfo.UseShellExecute = False
myProcess.startinfo.RedirectStandardOutput = True
myProcess.startinfo.RedirectStandardError = True
myProcess.startinfo.FileName = "c:\path\to\application.exe"
myProcess.startinfo.Arguments = "/foo /bar"
myProcess.startinfo.createnowindow = true
while (myProcess.hasexited = false)
Dim strLine As String = clsProcess.StandardOutput.ReadLine
If (Not String.IsNullOrEmpty(strLine)) Then
Me.TextBox1.Text &= sLine & vbCrLf
End If
Application.DoEvents()
End While
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$