rovertscott's Avatar
rovertscott 2
3 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
2 years ago via answers.hackaday.com

TF2 Monitoring program (http://hackaday.com/2009/12/30/tf2-kill-counter-binary-style/). How does the (Visual Basic) Program read Console?

id he manage to monitor console with a (Visual Basic I presume) Program? I would like to make a specialized window that operates based on Console output.
Tip for best answer: M$0.65
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

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$

What is Your Answer?

0
0
0

3 Answers

1
eureka's Avatar
eureka | 2 years ago
3
The long and the short.

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$

Report Abuse

Post Reply Cancel
0
jfractalj's Avatar
jfractalj | 2 years ago
2
I'll go out on a limb here and assume you're talking about vb .net.

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$

Report Abuse

Post Reply Cancel
0
opossum's Avatar
opossum | 2 years ago
7
That program reads a file named console.log, not a Windows 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$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates