View unanswered posts | View active topics


Reply to topic  [ 3 posts ] 
Redirecting executed command to Results panel? 
Author Message
Member

Joined: Fri Jan 18, 2013 5:43 am
Posts: 4
Post Redirecting executed command to Results panel?
Hello, I am in the process of writing a macro that executes a python script ( scans a tree of source code and generates a report )

Is there an easy way to redirect the output of the script to the Results panel?
And if so, what's the output format required for clicked text to auto-jump to the related file location?

Thanks!
Joey

EDIT: FWIW, I have a C# script set up already to execute the script and stores its output in a string.


Fri Jan 18, 2013 5:55 am
Profile
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 2547
Location: Finland
Post Re: Redirecting executed command to Results panel?
Check the result panel source code (PluginUI.cs) for possible syntaxes for the clickable error messages. Here's a command example of doing the message sending:

IMainForm.CallCommand("PluginCommand", "ResultsPanel.ClearResults");

Repeat this as you need:
TraceManager.Add("STRING_IN_CORRECT_RESULT_PANEL_FORMAT", (Int32)TraceType.Error);

IMainForm.CallCommand("PluginCommand", "ResultsPanel.ShowResults");


Fri Jan 18, 2013 7:31 am
Profile WWW
Member

Joined: Fri Jan 18, 2013 5:43 am
Posts: 4
Post Re: Redirecting executed command to Results panel?
Thanks for the quick response! Got it working with your help :)


Fri Jan 18, 2013 7:24 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

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

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