View unanswered posts | View active topics It is currently Tue Dec 18, 2018 1:56 pm






Reply to topic  [ 1 post ] 
Listening to the debug stream on external program 
Author Message
Rookie

Joined: Mon Feb 23, 2015 9:41 pm
Posts: 1
Post 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:
Code:
#pragma config(Sensor, dgtl1,  s1,             sensorTouch)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

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


This works as expected:
http://puu.sh/ga4Od/a34892823c.png

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).


Mon Feb 23, 2015 9:55 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.