How to control a monitor's power state.

Share your scripts written for the Script Device in this forum.
Post Reply
HB Guy
Member
Posts: 36
Joined: Fri Jun 30, 2006 3:52 pm
Location: Montréal, QC

How to control a monitor's power state.

Post by HB Guy »

Although I don't use HouseBot, the HA program I do use shares a common scripting language, namely VBScript. I've written, or collected, many handy functions that may also be useful to HouseBot users.

The attached ZIP file contains two VBScript subroutines that permit you to:
  • Control a monitor's power state (ON/OFF/STANDBY).
  • Enable/disable the Screensaver.
To perform these tricks, one must access the WIN32 API which is not normally accessible to VBScript. The trick is to use a "helper" called DynaCall that exposes most (but not all) of the WIN32 API to VBScript. If you'd like to learn more, please read my post here.

.
Attachments
MonitorAndScreenSaverControl.zip
Control monitor's power state and enable/disable ScreenSaver.
(1.19 KiB) Downloaded 652 times
Post Reply