Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created November 7, 2012 14:28
Show Gist options
  • Select an option

  • Save DinisCruz/4031921 to your computer and use it in GitHub Desktop.

Select an option

Save DinisCruz/4031921 to your computer and use it in GitHub Desktop.
O2 Script - VisualStudio API - create script with panel
var visualStudio = new VisualStudio_2010();
var topPanel = visualStudio.open_Panel();
topPanel.windowBase().width(600);
var panel = topPanel.insert_Above();
topPanel.add_Script_Me(panel);
//another way to do this
/*
var scriptEditor = visualStudio.open_ScriptEditor();
var panel = scriptEditor..insert_Above();
scriptEditor.InvocationParameters.add("panel", panel);
scriptEditor.set_Code("return panel;");
*/
return "done";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment