The OnPowerEvent event can be implemented by a script add-in to have Opus notify your script whenever certain system power-related events occur.

Method Name: OnPowerEvent

Argument Type:

PowerEventData 

Return Type:

none

Description:

The type property indicates the event that occurred.