Window.width = 40 * Window.cxChar; Window.height = 20 * Window.cyChar; // The Coordinates by flap are assigned not in pixel!!!! // The Special dialogue coordinates: // Õ: In 1/4 widths of the symbol // Y: In 1/8 heights of the symbol // AddControl(id,type,Xdlg,Ydlg,Wdlg,Hdlg,"Text") // The simple buttons: Window.AddControl(1, 0, 0, 0, 80,12,"Usual button"); Window.AddControl(2, 1, 0,12, 80,12,"By default"); // Radiobutton Window.AddControl(3,3,85,0,80,12,"First"); Window.AddControl(4,15,85,10,80,12,"Second"); //checked // Checkbox Window.AddControl(5,2,0,24,80,12,"Option 1"); Window.AddControl(6,14,0,32,80,12,"Option 2"); // checked // The static fields Window.AddControl(7,5,82,20,50,24,"The left alignment. Carrying the lines"); //Window.AddControl(0,6,82,20,50,24,"The center alignment. Carrying the lines"); //Window.AddControl(0,7,82,20,50,24,"The right alignment. Carrying the lines"); // The standard icons Window.AddControl(1000,8,0,44,6,6,"32517"); // application Window.AddControl(0,8,13,44,6,6,"32516"); // info Window.AddControl(0,8,26,44,6,6,"32514"); // ask Window.AddControl(0,8,38,44,6,6,"32513"); // stop Window.AddControl(0,8,52,44,6,6,"32515"); // // The text line Window.AddControl(8,9,0,60,80,10,"The text line"); // ListBox Window.AddControl(9,10,0,72,80,14,"Variant 1|Variant 2"); // Combobox Window.AddControl(10,11,0,82,80,29,"Tips 1|Tips 2"); // The vertical scrollbar Window.AddControl(11,12,82,48,58,34,"The vertical scrollbar"); // Both scrollbars Window.AddControl(12,13,82,84,58,34,"Both scrollbars"); // You can load the bitmap file Window.AddControl(0,16,54,112,40,40,"1.bmp"); // The progressbar Window.AddControl(1024,17,0,120, 136, 12, "50"); function WM_COMMAND(id) { var shell=new ActiveXObject("WScript.Shell"); if (id == 1) { // How to get the information fro fields? var text = Window.GetControlText(11); shell.Popup(text,0,"Controls",0); //Window.SetControlText(7,"Hello World!!!"); Window.ChangeIcon(1000,"%SystemRoot%\\System32\\WScript.exe", 3); }; };