Skip to content

Change the behavior of running Windows applications from the command line. Prevent closing, disable menus, hide an app's gui and more.

License

Notifications You must be signed in to change notification settings

mattddowney/contort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Change the behavior of running Windows applications from the command line. Prevent closing, disable menus, hide an app's gui and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages