Author

Topic: Vb.Net \ C# - Method to read console windows (Read 213 times)

newbie
Activity: 25
Merit: 0
Bump
newbie
Activity: 25
Merit: 0
Thanks, I'll cross post this over there.
hero member
Activity: 595
Merit: 503
workingForBitcoins.com
Try posting to the development forums: https://bitcointalk.org/index.php?board=12.0 There are tons of developers there, one might have a simple solution to your question
newbie
Activity: 25
Merit: 0
Hey Everyone,

I'm trying to create an agent that reports back data from common miners to a web service. My first thought was to capture the text using the RedirectStandardOutput as part of .Net's StartInfo, but it doesn't seem to work with Claymore's Ethereum miner. Everything works like a charm if I use a simple batch script to ping a website like google.com. I've read that some applications use unorthodox methods of sending output text. I tried capturing the error output but didn't have any luck on that front.

Code for the form: https://pastebin.com/GkBgN0G6
Class I'm using to launch the processes: https://pastebin.com/xWgBM1Ya

My next thought was to pull up Spy++ and see if I could capture the messages that way. It turns out that command consoles are protected by Windows and prevents Spy++ from accessing the console messages.

My hope is that there's a simple tweak to get what I have working. Are there any VB.Net or C# devs out there willing to help get this working?

Thanks!

Jump to: