Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.37 KB

cp.idle.md

File metadata and controls

23 lines (17 loc) · 1.37 KB

docs » cp.idle


This library allows tasks to be queue for execution when the computer has been idle for a specified amount of time. 'Idle' is defined as no keyboard or mouse movement.

API Overview

  • Functions - API calls offered directly by the extension
  • queue

API Documentation

Functions

Signature cp.idle.queue(idleSeconds, actionFn[, retryOnError]) -> nothing
Type Function
Description Adds an action to the idle queue, which will be run after the the computer has been idle
Parameters
  • idleSeconds - The number of seconds of idle time must have elapsed run the action
  • actionFn - The function to execute
  • retryOnError - Optional. If set to true, the action will try running again if there is an error.
Returns
  • Nothing