View unanswered posts | View active topics



Reply to topic  [ 3 posts ] 
another apps Integration 
Author Message
Member

Joined: Sat Aug 13, 2011 10:30 am
Posts: 15
Reply with quote
I make visual stage3d scenes editor, and need open source code in FD at error points.
FD suppor commands and scripts execution, but ignore this commands in launch parameters.

i upgrade ProcessParameters function. And now can controll FD by .bat files.

example of usage
myBat.bat
Code:
rem let FD execute script
FlashDevelop CallCommand#ExecuteScript#Internal;C:\Users\Megabyte\Desktop\fds.cs
rem let FD clear output panel
FlashDevelop CallCommand#PluginCommand#ResultsPanel.ClearResults


fix in source

FlashDevelop\MainForm.cs

Code:
public void ProcessParameters(String[] args)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker)delegate { this.ProcessParameters(args); });
                return;
            }
            this.Activate(); this.Focus();
            if (args != null && args.Length != 0)
            {
                for (Int32 i = 0; i < args.Length; i++)
                {
                   //++++++++++++++++++++++++++++++++++++++++++  adding begin +++++++++++++++++++++
                    String a = args[i];

                    if (a.IndexOf("CallCommand#") == 0)
                    {
                        string[] cm = a.Split('#');
                        try
                        {
                            Globals.MainForm.CallCommand(cm[1], cm[2]);
                        }
                        catch (Exception ex)
                        {
                            MessageBox.Show("Parameter command processing error: " + ex.Message);
                        }
                    }
                    else
                    {
                        OpenDocumentFromParameters(a);
                    }
                   
                   //++++++++++++++++ adding end ++++++++++++++++++++++++++++++++




                   
                }
            }
            Win32.RestoreWindow(this.Handle);
            /**
            * Notify plugins about start arguments
            */
            NotifyEvent ne = new NotifyEvent(EventType.StartArgs);
            EventManager.DispatchEvent(this, ne);
        }


Wed Sep 04, 2013 4:46 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1095
Location: Israel
Reply with quote
I Don't know where I will use it, but It's great! :-O

_________________
MovieClipCommander


Sun Sep 08, 2013 8:15 am
Profile
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 3043
Location: Finland
Reply with quote
We'll evaluate this.


Mon Sep 09, 2013 12:16 pm
Profile WWW
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

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