Index: /OniWindowMover/OniWindowMover.bdsproj
===================================================================
--- /OniWindowMover/OniWindowMover.bdsproj	(revision 257)
+++ /OniWindowMover/OniWindowMover.bdsproj	(revision 257)
@@ -0,0 +1,173 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<BorlandProject>
+  <PersonalityInfo>
+    <Option>
+      <Option Name="Personality">Delphi.Personality</Option>
+      <Option Name="ProjectType"></Option>
+      <Option Name="Version">1.0</Option>
+      <Option Name="GUID">{1B423A05-449A-452A-A603-D94B36D78696}</Option>
+    </Option>
+  </PersonalityInfo>
+  <Delphi.Personality>
+    <Source>
+      <Source Name="MainSource">OniWindowMover.dpr</Source>
+    </Source>
+    <FileVersion>
+      <FileVersion Name="Version">7.0</FileVersion>
+    </FileVersion>
+    <Compiler>
+      <Compiler Name="A">8</Compiler>
+      <Compiler Name="B">0</Compiler>
+      <Compiler Name="C">1</Compiler>
+      <Compiler Name="D">1</Compiler>
+      <Compiler Name="E">0</Compiler>
+      <Compiler Name="F">0</Compiler>
+      <Compiler Name="G">1</Compiler>
+      <Compiler Name="H">1</Compiler>
+      <Compiler Name="I">1</Compiler>
+      <Compiler Name="J">0</Compiler>
+      <Compiler Name="K">0</Compiler>
+      <Compiler Name="L">1</Compiler>
+      <Compiler Name="M">0</Compiler>
+      <Compiler Name="N">1</Compiler>
+      <Compiler Name="O">1</Compiler>
+      <Compiler Name="P">1</Compiler>
+      <Compiler Name="Q">0</Compiler>
+      <Compiler Name="R">0</Compiler>
+      <Compiler Name="S">0</Compiler>
+      <Compiler Name="T">0</Compiler>
+      <Compiler Name="U">0</Compiler>
+      <Compiler Name="V">1</Compiler>
+      <Compiler Name="W">0</Compiler>
+      <Compiler Name="X">1</Compiler>
+      <Compiler Name="Y">1</Compiler>
+      <Compiler Name="Z">1</Compiler>
+      <Compiler Name="ShowHints">True</Compiler>
+      <Compiler Name="ShowWarnings">True</Compiler>
+      <Compiler Name="UnitAliases">WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;</Compiler>
+      <Compiler Name="NamespacePrefix"></Compiler>
+      <Compiler Name="GenerateDocumentation">False</Compiler>
+      <Compiler Name="DefaultNamespace"></Compiler>
+      <Compiler Name="SymbolDeprecated">True</Compiler>
+      <Compiler Name="SymbolLibrary">True</Compiler>
+      <Compiler Name="SymbolPlatform">True</Compiler>
+      <Compiler Name="SymbolExperimental">True</Compiler>
+      <Compiler Name="UnitLibrary">True</Compiler>
+      <Compiler Name="UnitPlatform">True</Compiler>
+      <Compiler Name="UnitDeprecated">True</Compiler>
+      <Compiler Name="UnitExperimental">True</Compiler>
+      <Compiler Name="HResultCompat">True</Compiler>
+      <Compiler Name="HidingMember">True</Compiler>
+      <Compiler Name="HiddenVirtual">True</Compiler>
+      <Compiler Name="Garbage">True</Compiler>
+      <Compiler Name="BoundsError">True</Compiler>
+      <Compiler Name="ZeroNilCompat">True</Compiler>
+      <Compiler Name="StringConstTruncated">True</Compiler>
+      <Compiler Name="ForLoopVarVarPar">True</Compiler>
+      <Compiler Name="TypedConstVarPar">True</Compiler>
+      <Compiler Name="AsgToTypedConst">True</Compiler>
+      <Compiler Name="CaseLabelRange">True</Compiler>
+      <Compiler Name="ForVariable">True</Compiler>
+      <Compiler Name="ConstructingAbstract">True</Compiler>
+      <Compiler Name="ComparisonFalse">True</Compiler>
+      <Compiler Name="ComparisonTrue">True</Compiler>
+      <Compiler Name="ComparingSignedUnsigned">True</Compiler>
+      <Compiler Name="CombiningSignedUnsigned">True</Compiler>
+      <Compiler Name="UnsupportedConstruct">True</Compiler>
+      <Compiler Name="FileOpen">True</Compiler>
+      <Compiler Name="FileOpenUnitSrc">True</Compiler>
+      <Compiler Name="BadGlobalSymbol">True</Compiler>
+      <Compiler Name="DuplicateConstructorDestructor">True</Compiler>
+      <Compiler Name="InvalidDirective">True</Compiler>
+      <Compiler Name="PackageNoLink">True</Compiler>
+      <Compiler Name="PackageThreadVar">True</Compiler>
+      <Compiler Name="ImplicitImport">True</Compiler>
+      <Compiler Name="HPPEMITIgnored">True</Compiler>
+      <Compiler Name="NoRetVal">True</Compiler>
+      <Compiler Name="UseBeforeDef">True</Compiler>
+      <Compiler Name="ForLoopVarUndef">True</Compiler>
+      <Compiler Name="UnitNameMismatch">True</Compiler>
+      <Compiler Name="NoCFGFileFound">True</Compiler>
+      <Compiler Name="MessageDirective">True</Compiler>
+      <Compiler Name="ImplicitVariants">True</Compiler>
+      <Compiler Name="UnicodeToLocale">True</Compiler>
+      <Compiler Name="LocaleToUnicode">True</Compiler>
+      <Compiler Name="ImagebaseMultiple">True</Compiler>
+      <Compiler Name="SuspiciousTypecast">True</Compiler>
+      <Compiler Name="PrivatePropAccessor">True</Compiler>
+      <Compiler Name="UnsafeType">False</Compiler>
+      <Compiler Name="UnsafeCode">False</Compiler>
+      <Compiler Name="UnsafeCast">False</Compiler>
+      <Compiler Name="OptionTruncated">True</Compiler>
+      <Compiler Name="WideCharReduced">True</Compiler>
+      <Compiler Name="DuplicatesIgnored">True</Compiler>
+    </Compiler>
+    <Linker>
+      <Linker Name="MapFile">0</Linker>
+      <Linker Name="OutputObjs">0</Linker>
+      <Linker Name="ConsoleApp">1</Linker>
+      <Linker Name="DebugInfo">False</Linker>
+      <Linker Name="RemoteSymbols">False</Linker>
+      <Linker Name="GenerateDRC">False</Linker>
+      <Linker Name="MinStackSize">16384</Linker>
+      <Linker Name="MaxStackSize">1048576</Linker>
+      <Linker Name="ImageBase">4194304</Linker>
+      <Linker Name="ExeDescription"></Linker>
+    </Linker>
+    <Directories>
+      <Directories Name="OutputDir"></Directories>
+      <Directories Name="UnitOutputDir"></Directories>
+      <Directories Name="PackageDLLOutputDir"></Directories>
+      <Directories Name="PackageDCPOutputDir"></Directories>
+      <Directories Name="SearchPath"></Directories>
+      <Directories Name="Packages">xmlrtl;rtl;vcl;vclie;inet;inetdbbde;inetdbxpress;vclx;IndySystem;IndyCore;dbrtl;dsnap;soaprtl;IndyProtocols;bdertl;vcldbx;vcldb;webdsnap;websnap;vclactnband;GridPackd2005;TWrapGrid;Package1;A406_R70;CoolTrayIcon_D6plus;HexEdit;NexusDB1081x90;NexusDB108pv90;NexusDB108sr90;NexusDB108sq90;NexusDB108db90;dclAbsDBd9;vclAbsDBd9</Directories>
+      <Directories Name="Conditionals"></Directories>
+      <Directories Name="DebugSourceDirs"></Directories>
+      <Directories Name="UsePackages">False</Directories>
+    </Directories>
+    <Parameters>
+      <Parameters Name="RunParams"></Parameters>
+      <Parameters Name="HostApplication"></Parameters>
+      <Parameters Name="Launcher"></Parameters>
+      <Parameters Name="UseLauncher">False</Parameters>
+      <Parameters Name="DebugCWD"></Parameters>
+      <Parameters Name="RemoteHost"></Parameters>
+      <Parameters Name="RemotePath"></Parameters>
+      <Parameters Name="RemoteLauncher"></Parameters>
+      <Parameters Name="RemoteCWD"></Parameters>
+      <Parameters Name="RemoteDebug">False</Parameters>
+    </Parameters>
+    <VersionInfo>
+      <VersionInfo Name="IncludeVerInfo">False</VersionInfo>
+      <VersionInfo Name="AutoIncBuild">False</VersionInfo>
+      <VersionInfo Name="MajorVer">1</VersionInfo>
+      <VersionInfo Name="MinorVer">0</VersionInfo>
+      <VersionInfo Name="Release">0</VersionInfo>
+      <VersionInfo Name="Build">0</VersionInfo>
+      <VersionInfo Name="Debug">False</VersionInfo>
+      <VersionInfo Name="PreRelease">False</VersionInfo>
+      <VersionInfo Name="Special">False</VersionInfo>
+      <VersionInfo Name="Private">False</VersionInfo>
+      <VersionInfo Name="DLL">False</VersionInfo>
+      <VersionInfo Name="Locale">1031</VersionInfo>
+      <VersionInfo Name="CodePage">1252</VersionInfo>
+    </VersionInfo>
+    <VersionInfoKeys>
+      <VersionInfoKeys Name="CompanyName"></VersionInfoKeys>
+      <VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
+      <VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys>
+      <VersionInfoKeys Name="InternalName"></VersionInfoKeys>
+      <VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
+      <VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
+      <VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
+      <VersionInfoKeys Name="ProductName"></VersionInfoKeys>
+      <VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys>
+      <VersionInfoKeys Name="Comments"></VersionInfoKeys>
+    </VersionInfoKeys>
+    
+    <Excluded_Packages>
+      <Excluded_Packages Name="C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Borland Studio Projects\Bpl\TCrossEdit.bpl">(untitled)</Excluded_Packages>
+      <Excluded_Packages Name="d:\programme\borland\bds\3.0\Bin\dbwebxprt.bpl">Borland Web Wizard Package</Excluded_Packages>
+    </Excluded_Packages>
+  </Delphi.Personality>
+</BorlandProject>
Index: /OniWindowMover/OniWindowMover.dpr
===================================================================
--- /OniWindowMover/OniWindowMover.dpr	(revision 257)
+++ /OniWindowMover/OniWindowMover.dpr	(revision 257)
@@ -0,0 +1,16 @@
+program OniWindowMover;
+
+uses
+  Forms,
+  Unit1 in 'Unit1.pas' {Form1},
+  Unit2 in 'Unit2.pas' {Form2};
+
+{$R *.res}
+
+begin
+  Application.Initialize;
+  Application.Title := 'OniWindowMover';
+  Application.CreateForm(TForm1, Form1);
+  Application.CreateForm(TForm2, Form2);
+  Application.Run;
+end.
Index: /OniWindowMover/Unit1.dfm
===================================================================
--- /OniWindowMover/Unit1.dfm	(revision 257)
+++ /OniWindowMover/Unit1.dfm	(revision 257)
@@ -0,0 +1,140 @@
+object Form1: TForm1
+  Left = 0
+  Top = 0
+  BorderStyle = bsToolWindow
+  Caption = 'ONIWindowMover'
+  ClientHeight = 217
+  ClientWidth = 121
+  Color = clBtnFace
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
+  OldCreateOrder = False
+  OnCreate = FormCreate
+  PixelsPerInch = 96
+  TextHeight = 13
+  object grp_center: TGroupBox
+    Left = 0
+    Top = 0
+    Width = 121
+    Height = 57
+    Caption = 'Center ONI'
+    TabOrder = 0
+    object btn_center: TButton
+      Left = 8
+      Top = 16
+      Width = 105
+      Height = 33
+      Caption = 'Please click me :D'
+      TabOrder = 0
+      OnClick = btn_centerClick
+    end
+  end
+  object group_setxy: TGroupBox
+    Left = 0
+    Top = 64
+    Width = 121
+    Height = 97
+    Caption = 'Set x/y-position'
+    TabOrder = 1
+    object edit_x: TCrossEdit
+      Left = 8
+      Top = 16
+      Width = 105
+      Height = 17
+      AutoSize = False
+      BorderStyle = bsNone
+      Color = clWhite
+      Font.Charset = DEFAULT_CHARSET
+      Font.Color = clWindowText
+      Font.Height = -11
+      Font.Name = 'Tahoma'
+      Font.Style = []
+      ParentFont = False
+      TabOrder = 0
+      Text = '0'
+      FocusAlignment = taLeftJustify
+      NoFocusAlignment = taRightJustify
+      Precision = 15
+      Decimals = 2
+      FocusWidthInc = 0
+      EditType = etInteger
+      NextDialogOnEnter = True
+      DialogOnCursorKeys = True
+      NextPriorStep = 1
+      AutoFocus = False
+      LimitCheck = True
+      Max = 1024.000000000000000000
+      FocusColor = clWhite
+      NoFocusColor = clWhite
+      ErrorColor = clRed
+      StringCharSet = scFull
+    end
+    object edit_y: TCrossEdit
+      Left = 8
+      Top = 40
+      Width = 105
+      Height = 17
+      AutoSize = False
+      BorderStyle = bsNone
+      Color = clWhite
+      Font.Charset = DEFAULT_CHARSET
+      Font.Color = clWindowText
+      Font.Height = -11
+      Font.Name = 'Tahoma'
+      Font.Style = []
+      ParentFont = False
+      TabOrder = 1
+      Text = '0'
+      FocusAlignment = taLeftJustify
+      NoFocusAlignment = taRightJustify
+      Precision = 15
+      Decimals = 2
+      FocusWidthInc = 0
+      EditType = etInteger
+      NextDialogOnEnter = True
+      DialogOnCursorKeys = True
+      NextPriorStep = 1
+      AutoFocus = False
+      LimitCheck = True
+      Max = 768.000000000000000000
+      FocusColor = clWhite
+      NoFocusColor = clWhite
+      ErrorColor = clRed
+      StringCharSet = scFull
+    end
+    object btn_setxy: TButton
+      Left = 8
+      Top = 64
+      Width = 105
+      Height = 25
+      Caption = 'Set x/y'
+      TabOrder = 2
+      OnClick = btn_setxyClick
+    end
+  end
+  object group_black: TGroupBox
+    Left = 0
+    Top = 168
+    Width = 121
+    Height = 49
+    Caption = 'Open BlackScreen'
+    TabOrder = 2
+    object btn_black: TButton
+      Left = 8
+      Top = 16
+      Width = 105
+      Height = 25
+      Caption = '...'
+      TabOrder = 0
+      OnClick = btn_blackClick
+    end
+  end
+  object timer_check: TTimer
+    OnTimer = timer_checkTimer
+    Left = 48
+    Top = 104
+  end
+end
Index: /OniWindowMover/Unit1.pas
===================================================================
--- /OniWindowMover/Unit1.pas	(revision 257)
+++ /OniWindowMover/Unit1.pas	(revision 257)
@@ -0,0 +1,111 @@
+UNIT Unit1;
+INTERFACE
+USES
+  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
+  Dialogs, StdCtrls, CrossEdit, Math, ExtCtrls;
+
+TYPE
+  TForm1 = Class(TForm)
+    grp_center: TGroupBox;
+    group_setxy: TGroupBox;
+    btn_center: TButton;
+    edit_x: TCrossEdit;
+    edit_y: TCrossEdit;
+    btn_setxy: TButton;
+    group_black: TGroupBox;
+    btn_black: TButton;
+    timer_check: TTimer;
+    PROCEDURE timer_checkTimer(Sender: TObject);
+    PROCEDURE btn_blackClick(Sender: TObject);
+    PROCEDURE btn_setxyClick(Sender: TObject);
+    PROCEDURE FormCreate(Sender: TObject);
+    PROCEDURE btn_centerClick(Sender: TObject);
+    PROCEDURE Button1Click(Sender: TObject);
+  PRIVATE
+  PUBLIC
+  END;
+
+VAR
+  Form1: TForm1;
+
+IMPLEMENTATION
+USES Unit2;
+{$R *.dfm}
+VAR
+  ONIHandle:LongWord;
+
+PROCEDURE TForm1.Button1Click(Sender: TObject);
+  BEGIN
+    ONIHandle:=FindWindow(PChar('ONI '),PChar('ONI '));
+    Form1.Caption:=IntToStr(ONIHandle);
+  END;
+
+PROCEDURE TForm1.btn_centerClick(Sender: TObject);
+  VAR
+    Handle,NewX,NewY:LongWord;
+    Screen,Cur:TRect;
+    ScreenWidth,ScreenHeight,Width,Height:LongWord;
+  BEGIN
+    Handle:=FindWindow(PChar('ONI '),PChar('ONI '));
+    IF Handle>0 THEN BEGIN
+      GetWindowRect(Handle,Cur);
+      GetWindowRect(GetDesktopWindow,Screen);
+      ScreenWidth:=Screen.Right-Screen.Left;
+      ScreenHeight:=Screen.Bottom-Screen.Top;
+      Width:=Cur.Right-Cur.Left;
+      Height:=Cur.Bottom-Cur.Top;
+      IF (Width<ScreenWidth) AND (Height<ScreenHeight) THEN BEGIN
+        NewX:=(ScreenWidth DIV 2)-(Width DIV 2);
+        NewY:=(ScreenHeight DIV 2)-(Height DIV 2);
+        IF NOT SetWindowPos(Handle,0,NewX,NewY,0,0,SWP_NOSIZE OR SWP_NOACTIVATE OR SWP_NOZORDER) THEN
+          ShowMessage('Couldn''t set the position of ONIs window!');
+      END ELSE ShowMessage('ONIs window is at fullscreen!');
+    END ELSE ShowMessage('Couldn''t find ONIs window!');
+  END;
+
+PROCEDURE TForm1.FormCreate(Sender: TObject);
+  VAR
+    Screen:TRect;
+  BEGIN
+    GetWindowRect(GetDesktopWindow,Screen);
+    edit_x.Max:=Screen.Right;
+    edit_y.Max:=Screen.Bottom;
+    edit_x.BorderStyle:=bsSingle;
+    edit_y.BorderStyle:=bsSingle;
+  END;
+
+PROCEDURE TForm1.btn_setxyClick(Sender: TObject);
+  VAR
+    Handle:LongWord;
+  BEGIN
+    IF edit_x.CheckError THEN BEGIN
+      ShowMessage('x-value has to be between 0 and '+IntToStr(Floor(edit_x.Max))+'!');
+      Exit;
+    END;
+    IF edit_y.CheckError THEN BEGIN
+      ShowMessage('y-value has to be between 0 and '+IntToStr(Floor(edit_y.Max))+'!');
+      Exit;
+    END;
+    Handle:=FindWindow(PChar('ONI '),PChar('ONI '));
+    IF Handle>0 THEN BEGIN
+      IF NOT SetWindowPos(Handle,0,edit_x.GetInteger,edit_y.GetInteger,0,0,SWP_NOSIZE OR SWP_NOACTIVATE OR SWP_NOZORDER) THEN
+        ShowMessage('Couldn''t set the position of ONIs window!');
+    END ELSE ShowMessage('Couldn''t find ONIs window!');
+  END;
+
+PROCEDURE TForm1.btn_blackClick(Sender: TObject);
+  BEGIN
+    IF FindWindow(PChar('ONI '),PChar('ONI '))>0 THEN BEGIN
+      Form2.Visible:=NOT Form2.Visible;
+      SetForeGroundWindow(FindWindow(PChar('ONI '),PChar('ONI ')));
+    END;
+  END;
+
+PROCEDURE TForm1.timer_checkTimer(Sender: TObject);
+  BEGIN
+    IF Form2.Visible THEN BEGIN
+      IF FindWindow(PChar('ONI '),PChar('ONI '))=0 THEN Form2.Visible:=False;
+    END;
+  END;
+
+END.
Index: /OniWindowMover/Unit2.dfm
===================================================================
--- /OniWindowMover/Unit2.dfm	(revision 257)
+++ /OniWindowMover/Unit2.dfm	(revision 257)
@@ -0,0 +1,21 @@
+object Form2: TForm2
+  Left = 0
+  Top = 0
+  Cursor = crCross
+  BorderStyle = bsNone
+  Caption = 'BlackScreen'
+  ClientHeight = 320
+  ClientWidth = 434
+  Color = clBlack
+  TransparentColorValue = clMaroon
+  Enabled = False
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
+  OldCreateOrder = False
+  WindowState = wsMaximized
+  PixelsPerInch = 96
+  TextHeight = 13
+end
Index: /OniWindowMover/Unit2.pas
===================================================================
--- /OniWindowMover/Unit2.pas	(revision 257)
+++ /OniWindowMover/Unit2.pas	(revision 257)
@@ -0,0 +1,19 @@
+UNIT Unit2;
+INTERFACE
+USES
+  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
+  Dialogs;
+
+TYPE
+  TForm2 = Class(TForm)
+  PRIVATE
+  PUBLIC
+  END;
+
+VAR
+  Form2: TForm2;
+
+IMPLEMENTATION
+{$R *.dfm}
+
+END.
