Listening to the debug stream on external program
Page 1 of 1

Author:  Timer [ Mon Feb 23, 2015 9:55 pm ]
Post subject:  Listening to the debug stream on external program

Hi! I'm trying to create a program that listens for "events" to be fired off by the robot.
For the robot (and sake of proof of concept), I am simply working with this code:
#pragma config(Sensor, dgtl1,  s1,             sensorTouch)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
   int count = 0;
   while (true) {
      char arr[7] = "Bump  ";
      arr[6] = (char) ('a' + (count++ % 26));

This works as expected:

However, is there any way to listen to that window? Is the log saved somewhere?
Edit: In addition, Spy++ shows that the window is not an edit control so I cannot use WM_GETTEXT.

Edit 2: To clarify my objective, I want to do something (for example, perform a web request) when a new line gets printed in the debug stream. The solution I am looking for does not pertain to RobotC directly, I'm asking for a way to access this stream (be it dll injection, a SendMessage event, or a text file).

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group