Change the sizes dialogue window.

Size, Position, Caption

First the most simplest problem (in pixels): Create the dialogue window of exhibit by size 400px on 200px, and dispose it on coordinate 200px, 200px.
// File: size.w_js (JScript)
   Window.x = 200;
   Window.y = 200;
   Window.width = 400;
   Window.height = 200;
'File: size.w_vbs (VBScript)
   Window.x = 200
   Window.y = 200
   Window.width = 400
   Window.height = 200
Run it! (double click)
Create form of the entering not hanging from expansion of the screen (size in symbols):
// File: size_1.w_js (JScript)
   Window.width = 40 * Window.cxChar;
   Window.height = 20 * Window.cyChar;
'File: size_1.w_vbs (VBScript)
   Window.width = 40 * Window.cxChar
   Window.height = 20 * Window.cyChar
The ShowWindow function sets the specified window's show state:
Window.ShowWindow(3); //Maximizes the main window (JScript)
Window.ShowWindow(3) 'Maximizes the main window (VBScript)
Syntax:Window.ShowWindow(iCmdShow);
iCmdShow:
  • 0 - Hides the window and activates another window;
  • 1 - Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
  • 2 - Minimizes the specified window and activates the next top-level window in the Z order
  • 3 - Maximizes the specified window
  • 4 - Displays a window in its most recent size and position. The active window remains active.
  • 5 - Activates the window and displays it in its current size and position
  • 6 - Minimizes the specified window and activates the next top-level window in the Z order
  • 7 - Displays the window as a minimized window. The active window remains active
  • 8 - Displays the window in its current state. The active window remains active
  • 9 - Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window.
Notes:
  1. By default, for making dialogue window, and its positioning is used style CW_USEDEFAULT.
  2. Change the size dialogue window by means of mouse - is not supported

The window caption

// File size_2.w_js (JScript)
   Window.title = "Hello World!";
'File size_2.w_vbs (VBScript)
   Window.title = "Hello World!"
content
Advanced scripting host
JScript and VBScript are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.