Bitcoin Forum
May 03, 2024, 01:45:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   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!

1714700744
Hero Member
*
Offline Offline

Posts: 1714700744

View Profile Personal Message (Offline)

Ignore
1714700744
Reply with quote  #2

1714700744
Report to moderator
1714700744
Hero Member
*
Offline Offline

Posts: 1714700744

View Profile Personal Message (Offline)

Ignore
1714700744
Reply with quote  #2

1714700744
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bitcoinore.com
Hero Member
*****
Offline Offline

Activity: 592
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!