Skip to content

zoharl3/suspend_process

Repository files navigation

Suspend a process, pause a game

A convenient (Python) script to suspend a game on Windows.

Motivation

I finished playing, and I'd like to continue later. Usually, if you minimize a game (e.g., show desktop), it still runs in the background, taking resources. When closing another task, it usually pops up unexpectedly.

Some games don't even allow you to pause, e.g., "Lords of the Fallen."

You could manually suspend the process, but the main window will stay on the taskbar and sometimes cause trouble.

If there's a convenient save, you could simply exit. But running the game each time is a hassle.

Instead, via a shortcut (on the desktop) to a script, a game can be paused and resumed conveniently, hiding and showing its main window.

Installation

  • It requires pssuspend.exe in the script directory.
  • pip install imported packages.

Usage

  • suspend_process.py <task_name> [-t <window_title>]
    The script that suspends a task.
  • suspend_process_create_shortcut.py is a convenient GUI that asks to choose the main window of a running process and creates a desktop shortcut to suspend_process.py based on the window information.

About

A convenient script to suspend a game on Windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published