OWASP O2 Platform Blog

Creating a Simple Ribbon Bar

This script will create a simple Ribbon tool bar which is easily customizable 

var ribbon = panel.add_Ribbon();
 .add_Button("This is a button that opens Notepad", ()=>Processes.startProcess("Notepad"))
 .add_StartProcess("This is for cmd.exe", "cmd.exe")     
 .add_Script("OWASP WebScarab (Custom O2 version)", "OWASP WebScarab (Custom O2 version).h2")
 .add_Button("Now with logo (opening O2 Folder)", "Open_16x16.png", ()=> Processes.startProcess(Environment.CurrentDirectory) );

return "ok";


October 18, 2010 - Posted by | O2 Internals

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: