Page 1 of 1

How to control a monitor's power state.

Posted: Mon Sep 22, 2008 12:19 pm
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.

.