Skip to content

AutoSuspend

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

AutoSuspend

AutoSuspend:Void enable:Int32
Parameter Mode Type Default Description
enable In Int32 required 1 turns it on, 0 turns it off.

Description

Switches whether the program stops when its window is not the active one and carries on when it is back. It is off by default, except for programs that run full screen, which have it on until they turn it off. The program also waits while its window is minimized. A program can also react to the events $2001 and $2002 itself.

Examples

Graphics 320, 240, 32, 2
AutoSuspend 1
win = CreateWindow("Suspends", 20, 20, 240, 100, Desktop(), 3)
Repeat
Until WaitEvent() = $803

Related Commands

ActiveObjects, Confirm, CreateProcess

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally