Skip to content

Latest commit

 

History

History
109 lines (66 loc) · 2.79 KB

README.md

File metadata and controls

109 lines (66 loc) · 2.79 KB

Contort

Change the behavior and appearance of running Windows applications from the command line.

Disable an application's close button

contortPreventClose

Sometimes you want an application to run, but you don't want your users to be able to close it.

Simply run contort disable <app_name> --close.

Disable minimizing and maximizing

contortDisableMinMax

With contort you can toggle multiple window styles at once.

To prevent minimizing and maximizing, run contort disable <app_name> --minimize --maximize.

Disable an application's menubar

contortDisableMenu

Quite often key settings are located in an application's menu.

Lock the menu down by disabling it completely with contort disable <app_name> --menu.

Hide and show windows

contortHideShow

Maybe you want your GUI application to run in the background without your user's knowledge.

This is possible by running contort hide <app_name>.

Installation

Clone the repo: git clone https://github.com/mattddowney/contort

Navigate into the cloned folder and run: go install

Usage

usage: contort [<flags>] <command> [<args> ...]

Modify the behavior and appearance of a window.
https://github.com/mattddowney/contort

Flags:
  --help     Show context-sensitive help (also try --help-long and --help-man).
  --version  Show application version.

Commands:
  help [<command>...]
    Show help.


  disable [<flags>] <window>
    Disable part of a window's GUI.

    --close     Disable a window's close button.
    --maximize  Disable a window's maximize button.
    --menu      Disable a window's menu bar. Once disabled, a window's menu bar
                cannot be re-enabled.
    --minimize  Disable a window's minimize button.
    --titlebar  Disable a window's titlebar.

  enable [<flags>] <window>
    Enable part of a window's GUI.

    --close     Enable a window's close button.
    --maximize  Enable a window's maximize button.
    --minimize  Enable a window's minimize button.
    --titlebar  Enable a window's titlebar.

  hide <window>
    Hide a window.


  list
    List all window titles.


  maximize <window>
    Maximize a window.


  minimize <window>
    Minimize a window.


  move --x=X --y=Y <window>
    Move a window.

    --x=X  X position
    --y=Y  Y position

  restore <window>
    Restore a window to it's state before minimizing or maximizing.


  show <window>
    Show a window.