Joined: July 29th, 2013, 9:13 am Posts: 609
|
An event that is currently missing from the widget engine:
wakefromsleep sent when the computer wakes from sleep mode
Description This event is sent when the computer wakes from sleep mode. Timers are stopped when the computer goes to sleep and are not restarted until onWakeFromSleep is called. There is usually a delay of about 15 seconds between when the computer wakes and when this event is sent. This is to give the networking stack time to recover before the Widget timers start to function again.
Example widget.onWakeFromSleep = handleWake;
The absence of this event means that some essential tasks that need to be performed on wake up cannot be performed. The above is an extract from the yahoo widget documentation showing how it should work in an existing javascript engine.
Usage: When ActiveX controls are used to interface to system functions such as windows media player, after a system hibernate and restart the underlying connection is not always maintained between the component and the widget leading to an error and a subsequent hang. If the onWakeFromSleep event was implemented, the ActiveX object could be reinstantiated to ensure the connection is remade. Currently Xwidget is unable to do this.
Last edited by yereverluvinuncleber on June 28th, 2017, 5:05 am, edited 1 time in total.
|
|