Name

condition user inactivity, conditionuserinactivity, kPMConditionConditionUserInactivity — Conditional on the period of user inactivity.

Synopsis

condition user inactivity structure { invert, type, seconds of inactivity };
invert : boolean, default, optional
type : string, choice
seconds of inactivity : integer, default, range 1..86400

Description

Conditional on the period of user inactivity.

inactive tests if the user has been inactive for a period of time. User inactivity is considered the time since any user last interacted with an input device. Input devices include mice, keyboard, and trackpads.

Fields

invert. Invert the condition's conclusion.

Conditions are designed to positively identify specific states. Many events will want a condition to confirm that a specific state is not occuring. To reverse the role of a positive condition, use the invert field.

If a condition is true, and the invert field is set, the condition will invert the true and return false.

If a condition is false, and the invert field is set, the condition will invert the false and return true.

invert is a boolean. If invert is omitted, the default false is used. invert is optional.

type. Type of condition to test.

type is a string. type must be inactive, kPMConditionType_Inactive.

seconds of inactivity. Period of inactivity needed.

seconds of inactivity is measured in seconds.

seconds of inactivity is an integer. If seconds of inactivity is omitted, the default 900 is used. seconds of inactivity must be between 1 and 86400, inclusive.