Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mattddowney/contort
- Owner: mattddowney
- License: mit
- Created: 2019-05-12T23:52:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T03:20:50.000Z (over 4 years ago)
- Last Synced: 2023-03-11T15:24:51.752Z (almost 2 years ago)
- Topics: admin-tools, cli, command-line, disable-ui, gui, terminal, ui, win32, windows
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/contortFlags:
--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 positionrestore
Restore a window to it's state before minimizing or maximizing.show
Show a window.
```