Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mattddowney/contort

Change the behavior of running Windows applications from the command line. Prevent closing, disable menus, hide an app's gui and more.
https://github.com/mattddowney/contort

admin-tools cli command-line disable-ui gui terminal ui win32 windows

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

Contort
=======

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

### Disable an application's close button

![contortPreventClose](https://user-images.githubusercontent.com/524968/79677714-804dd380-81b1-11ea-95df-3572ff458331.gif)

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

Simply run `contort disable --close`.

### Disable minimizing and maximizing

![contortDisableMinMax](https://user-images.githubusercontent.com/524968/79677723-85ab1e00-81b1-11ea-809e-405bb5fa3ed8.gif)

With contort you can toggle multiple window styles at once.

To prevent minimizing and maximizing, run `contort disable --minimize --maximize`.

### Disable an application's menubar

![contortDisableMenu](https://user-images.githubusercontent.com/524968/79677778-ecc8d280-81b1-11ea-9202-be9266ca25a7.gif)

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

Lock the menu down by disabling it completely with `contort disable --menu`.

### Hide and show windows

![contortHideShow](https://user-images.githubusercontent.com/524968/79677779-f4887700-81b1-11ea-9677-29d86ac31252.gif)

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

This is possible by running `contort hide `.

Installation
------------

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

Navigate into the cloned folder and run: `go install`

Usage
-----

```
usage: contort [] [ ...]

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 [...]
Show help.

disable []
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 []
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
Hide a window.

list
List all window titles.

maximize
Maximize a window.

minimize
Minimize a window.

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

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

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

show
Show a window.
```