Copyright: 12Ghosts WinControl Help. Copyright © 1993-2000 12Ghosts, Inc. All rights reserved.


PACT WinBzzzz
Contents  PRO Packs  Order  FAQ  HowTo  Reviews  12Ghosts.com  E-mail  Contact

 12Ghosts WinControl
Size and position, close or terminate a window remotely!

Set the size and position of a window, or close any window, via click, shortcut, timer, or batch file. Easily test your web pages at 640x480. Close or terminate programs at your command. Set a new browser window where you’d like. Quickly and exactly position windows that tend not to keep their position. Quick buttons for 640, 800, 1024, 1280. Start and position via batch file! Automatic shortcut creation.

New:

•	Check for not-responding apps and restart them.

•	Even position child windows. However, if you hold the CTRL key while dragging the upper flag, only main application windows are selected.

Usage

Let's assume you have an Internet Explorer window open and want to size it to exactly 300x200. Click on the upper green flag and drag the flag over the Internet Explorer window. The "Window Title" should be the same now, the "Window Class" is of interest later (see Shortcuts).

Now enter the size you want to set, for example, Width to 300 and Height to 200. Then click on the button "Size". The Explorer window should be resized to exactly 300 by 200 points now.

Note: A full screen window on a 640x480 screen does not have the size of 640x480. This is because the borders of a full screen window are outside the screen, but they are still there... So the full screen quick buttons add the current frame size (by default eight points) and then set the size correctly.

Move and Size

You can move and size a window. Or choose only to move or only to size the window.

If you want to make two windows the same size, you can drag the lower flag over the window, whose size you want as your model. You can also select child windows to get their size (but you can't resize or move child windows).

Close or Terminate

You might want to close a certain window. Select Close just to try closing the window in a "friendly" manner. This will ask the window to save data if it has unsaved data. In that case, the window will not close.

To close an application, regardless if it has unsaved data or not, regardless if the application is hanging, select Terminate. You should carefully read the warning! Unsaved data will be lost. (You can suppress the warning on the command line with the /no warning option.)

Check for not-responding apps

You would like to check for an application regularly if it stopped responding? Use 12-WinControl to check every x seconds for hanging apps. Set the time to wait until the application is considered to be not responding any more. That application is going to be terminated, and the specified program is restarted.

As usually, select the running app you want to check on by drawing the green flag over its window.

Shortcuts

A shortcut can be created that will set the same position later when started. As with all shortcuts, you can enter a hotkey to start the shortcut. However, for the shortcut to work you need to keep it either on the desktop or within the Start menu!

In the above example, the "Window Class" field specifies any Internet Explorer window. But if a "Window Title" is given, only this particular window is moved or resized.

If you specify an exact "Window Title" here, the shortcut would only work on a window with the exact same window title. But if you leave the field "Window Title" empty, and then create the shortcut, the shortcut can be used with every window of the class "IEFrame", that is, any Internet Explorer window.

Batch Commands

The easiest way to create a shortcut with the correct command line parameters is to click on Create Shortcut. You can use the following commands in your batch files, or for example, if you call WinControl from an application scheduler like 12Ghosts Timer.

/N	Window Title (Name). Text at the top of each window, in the blue bar

/C	Window Class. Every window belongs to a certain class. This way you can control every Internet Explorer window, for example, and not just any or all windows.

/L	Left. Distance, in points, from the left edge of the screen.

/T	Top. Distance, in points, from the top edge of the screen.

/W	Width in points.

/H	Height in points.

/close	Close the window. The window can still save data.

/terminate	Definitely stop the application to which the window belongs. The application can not save unsaved data.

/nowarning	No Warning. Only used in conjunction with /TERMINATE. No warning message will be displayed if the window does not respond to a last "friendly" close inquiry. The application will be closed without saving user data.

/min	Minimize the window.

/max	Maximize the window.

/hide	Hide the window.

/unhide	Unhide the window.

/top	Activate window

/bottom	Bing window behind all others

/ontop	Keep on top

/notontop	No longer on top

/wait:s	Wait s seconds

Example: Batch File for Starting and Positioning in one Step

Let’s assume you want to open a web page and set its size and the position of the Internet Explorer window and that all in one command.

First, create a batch file: create a new text file and change the extension from ".txt" to ".bat" when you save it. The file should have two lines, the first opens Internet Explorer, the second starts WinControl in order to set the position. The following example would open the CNN homepage and place it in the upper left corner:

start http://www.news.com/
"C:\Program Files\12Ghosts WinControl\12wincontrol.exe" /C'IEFrame' /L3 /T2 /W850 /H735 /wait:3

The DOS command start will open your default browser. The class 'IEFrame' is the class of the Internet Explorer window. For any other window you can easily find out the class by dragging the upper flag over the specific window.

Let WinControl create the second line for you: First open the Internet Explorer manually, drag the flag over the IE window, empty the Window Title field (so that it works with any window title), and enter the correct size and the position coordinates. Then click on "Create Shortcut", switch to the desktop, right-click on the new shortcut, select Properties, then Shortcut, and finally copy the Target line to your batch file.

Contents  PRO Packs  Order  FAQ  HowTo  Reviews  12Ghosts.com  E-mail  Contact

Copyright © 1993-2000 12Ghosts, Inc. All rights reserved.

Member of the ASP.  We use renewable energy only.

12Ghosts - The "Seven Dwarves" for Windows.®