Jump to content


Submitter

File Information

  • Submitted: Jan 15 2009 02:22 PM
  • Last Updated: Jan 15 2009 02:22 PM
  • File Size: 2.63K
  • Views: 1167
  • Downloads: 18
  • Author: 123
  • Contact: PM

Download Module: Scheduled control of a touchscreen's power state.

- - - - -



Allows you to control a monitor's power state according to a schedule.

The attached XDO contains:

Modules.Utility.Globalscripts.gMonitorControl.gSetMonitorState sets a monitor's power state (On/Off/Standby)
Modules.Utility.Globalscripts.gMonitorControl.gScreenSaver enables/disables the screensaver.
Modules.Default.Timers.MonitorSleep puts the monitor into Standby mode at 11:00 PM
Modules.Default.Timers.MonitorOn turns on the monitor at 6:30 AM

It also includes a "bonus" function:
Modules.Utility.Globalscript.gLighting.gAllLights turns all non-hidden lights on/off.

Before you attempt to use the Monitor-related functions, you must download and install DynaCall (a.k.a DynaWrap).
DynaCall provides access to the WIN32 API and normally this cannot be done using plain-vanilla VBscript. For more information see this post.

After you've registered the DynaCall DLL, import the XDO.  Change the Timer settings to suit your scheduling requirements. Some of the functions use "debugout" to write messages to the Windows Debug Console. If you want to see these messages, you'll need to run DebugView.

Here's a handy enhancement: alter the OnChangeTrigger function of the MonitorOn timer so that it checks your security system's arming state.  If SecurityState=0 (i.e. "Armed") then you're probably not home and there's no need to wake up the monitor.






  • 157 Total Files
  • 8 Total Categories
  • 25 Total Authors
  • 19625 Total Downloads
  • Premise Web Services Latest File
  • John in VA Latest Submitter

0 user(s) are online (in the past 15 minutes)

0 members, 0 guests, 0 anonymous users