WinPos

A simple utility to position any window from the command-line
Download

WinPos Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Rik Blok
  • Operating Systems:
  • Windows All
  • File Size:
  • 63 KB

WinPos Tags


WinPos Description

The WinPos application was designed to be a simple utility to position any window from the command-line. The window is positioned, optionally resized, and brought to the foreground. WinPos is designed for use within batch files. Command-line options: WinPos.exe "window title" xul yul where "window title" is the title of the desired window to receive focus. If the window title includes spaces be sure to enclose it in quotes. xul & yul are the desired coordinates of the upper left corner of the window, width (optional) is the desired width of the window, and height (optional) is the desired height of the window. If width and height are not specified, the window will be moved but not resized. Warning: the position parameters allow values which would place the window off the screen (negative or large positive values). If the window is accidentally placed off the screen you can bring it back with another call to WinPos. WinPos supports wildcards at the beginning and end of the string using the asterisk "*". A wildcard at the beginning of the string allows any number of characters before the string in the window title. Similarly, a wildcard at the end of the string allows any number of characters after the string to be matched. See the examples for a demonstration. If the specified window is not found or an error occurs WinPos exits with an error code of 1. This error code can be trapped in batch files with "IF ERRORLEVEL 1 ...". If multiple windows match the search criterion, a random one of them is chosen and activated.


WinPos Related Software