SEARCH
TOOLBOX
LANGUAGES
modified on 16 May 2010 at 10:27 ••• 2,679 views

O2 Ast CodeScanner - Creating Method Streams

From

Jump to: navigation, search

The O2 scanner is based on a concept called 'Method Streams'

This page will explain how that works

Step 1: Creating the "Method Stream Creator" GUI

to create the "Method Stream Creator" GUI we will use O2's scripting capabilities.

If you right-click on the big O2 Logo (from the "O2 XRules Database" application), you will see a menu called 'O2 Script Development & Debug". From the multipe options select the "Open quick development gui' item, and the following window should open:

Image:5_3_2010_11_59_54_PM_tmp2CDB.jpg

and just to test that all is ok, click on 'Execute':

Image:5_4_2010_12_22_40_AM_tmp2D72.jpg

the "Open quick development gui' is made of two core components:

  1. the bottom frame which contains the script and the 'execute' button
  2. the top frame which contains a .Net Windows Forms 'Panel' Control that acts like a cavas/host for the script written in the bottom frame

for example the following code opens a Web Browser control (which is IE) on the top frame and shows google:

 
 panel.clear();
 var browser = panel.add_Browser();
 browser.open("http://www.google.com");

Image:5_4_2010_12_25_06_AM_tmp2D9A.jpg

MediaWiki Appliance - Powered by TurnKey Linux