xtaskill is a simple command-line utility for managing windows and processes on Windows operating systems. It allows users to close a window by clicking on it or terminate the associated process. The utility is built using Python and utilizes Windows API calls to achieve its functionality.
- Closes a Window: Click on any window to close it using its window handle.
- Terminate a Process: Click on any window to retrieve its process ID and terminate the associated process.
- Command-line Arguments: Specify behavior using command-line options.
- Download the
xtaskill.exefile from the releases section. - Place the executable in a directory included in your system's PATH, or use it directly from its location.
You can use xtaskill.exe from the command line as follows:
Set up the hook to capture the window handle and close the window when clicked:
xtaskill.exe -winSet up the hook to capture the process ID and terminate the process when clicked:
xtaskill.exeWindows operating system No external libraries are required, as it uses built-in Windows API calls through Python's ctypes.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please fork the repository and submit a pull request for any changes or improvements.
Thanks to the Python community and the maintainers of the Windows API for their valuable resources and documentation.