Bitcoin Forum
June 17, 2024, 02:52:39 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Vb.Net \ C# - Method to read console windows  (Read 201 times)
Force098 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
July 16, 2017, 06:52:36 PM
 #1

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!

bitcoinore.com
Hero Member
*****
Offline Offline

Activity: 595
Merit: 503


workingForBitcoins.com


View Profile WWW
July 16, 2017, 07:09:56 PM
 #2

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

Force098 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
July 16, 2017, 07:10:26 PM
 #3

Thanks, I'll cross post this over there.
Force098 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
July 26, 2017, 10:14:43 PM
 #4

Bump
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!