ActiveScript functions/properties in Weaverslave

###############################################################
application
###############################################################

integer function handle();
  - returns mainform handle

string function exeName();
  - returns path and filename of application

void function showMessage(string $str)
  - shows a message

void function openDocument(string $filename);
  - opens a document 

bool function createDocument([string $ext]);
  - creates a new document, returns true on success

string function editorName();
  - returns editor name

string function editorVersion();
  - returns editor version

string function editorLanguage();
  - returns current editor language

string function editorhtmldocu();
  - returns path and filename of external HTML-Documentation

string function editorPHPDocu();
  - returns path and filename of external PHP-Documentation

string function projectDirectory();
  - actually this return the path of the actual document

string function currentdirectory();
  - returns the directory in the file browser

string function files();
  - returns all open files

string function fileshistory();
  - returns previously opened files

string function filesmodified();
  - returns current modified files

integer function filecount();
  - returns count of open files

string function browsers();
  - returns browsers

string function scriptfile();
  - returns path and filename of the script

integer function messageDlg(integer $btntype, string $msg)
  - show a message dialog (0..5, 16, 32, 48, 64)
  - return value
     1 = OK
     2 = Cancel
     3 = Abort
     4 = Retry
     5 = Ignore
     6 = Yes
     7 = No
     8 = Close 

string function inputDlg(string $caption, string $prompt, 
  string $default)

object function document()
  - returns an object to manipulate the current document 

object function search()
  - returns an object to use the search functions

###############################################################
document
###############################################################

bool function gotoline(integer $line)
  - select line

string function filename()
  - returns filename (empty if not saved)

integer property selstart
  - get/set selection start

integer property sellength
  - get/set selection length

string property seltext
  - get/set selected text

string property text
  - get/set all text

bool function save(string $filename)
  - saves document

###############################################################
search
###############################################################

bool function search(string $searchfor, integer $where, 
  string $directory)
  - $searchfor - Suchbegriff
  - $where 
      0 = current file
      1 = current directory
      2 = defined directory
      3 = opened files
      4 = document directory
      5 = search results
  - $directory - only for defined directory

bool property optCaseSensitive
  - get/set case sensitivity

bool property optWholeWords
  - get/set search for whole words

bool property optRegEx
  - get/set use of regular expression

bool property optUnGreedy
  - get/set greediness (regular expressions only)

bool property optSingleLine
  - get/set linebreaks covered by point
     (regular expressions only)

bool property optMultiLine
  - get/set match of ^ and $ at linebreaks

bool property optIncludeSubDirs
  - get/set search in subdirectories

bool property optFromCursor
  - get/set search from cursor

bool property optInSelection
  - get/set search in selection

bool function next(bool $allfiles)
  - select next match

bool function previous(bool $allfiles)
  - select previous match