Difference between revisions of "Advanced Functions in Macros"

From X10Wiki
Jump to navigation Jump to search
m
Line 16: Line 16:
 
===Windows Command===
 
===Windows Command===
 
* This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.
 
* This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.
This lets you run any program on your PC that you could run from the command line (Start->Run...). If you need to append conditionals (like dir -od) you will need to build a [http://en.wikipedia.org/wiki/Batch_file batch file] then run that from your macro. Here is how to make a batch file that [http://www.computerhope.com/issues/ch001041.htm plays a MP3].
+
This lets you run any program on your PC that you could run from the command line (Start->Run...). For example, you can play the default Windows chime sound by putting '''mplay32''' in the Command field and '''/play /close "c:\windows\media\chimes.wav"''' in the Arguments field. This will only work for .wav, .mid, *.cda, *.avi, or *.asf files; you will need to [http://www.google.com/search?q=convert+mp3+to+wav convert MP3 files to WAV format] to play them this way.
  
 
===Extended Code===
 
===Extended Code===

Revision as of 20:49, 29 June 2011

Question

What do the various items listed under Advanced Functions in the Macro Designer do?

Answer

Make sure you click here to locate Advanced Functions:

Thisbit.JPG

Some advanced functions require that you have MyHouse Online; those are noted below.

X10 Address Command

This function lets you issue an X10 address over the powerline, but without any ON or OFF command after it. We know of no uses for this command.

Windows Command

  • This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.

This lets you run any program on your PC that you could run from the command line (Start->Run...). For example, you can play the default Windows chime sound by putting mplay32 in the Command field and /play /close "c:\windows\media\chimes.wav" in the Arguments field. This will only work for .wav, .mid, *.cda, *.avi, or *.asf files; you will need to convert MP3 files to WAV format to play them this way.

Extended Code

This lets you use the X10 Extended Code protocol, detailed here. Unless you are developing your own X10-compatible devices this is likely to be of little use. X10 does not provide any other support or documentation for use of this Extended Code command in macros.

Module Control

This lets you issue an arbitrary BRIGHT/DIM/ON/OFF command to some module without having to define it elsewhere in the software.

Appliance Control

This lets you issue an arbitrary ON/OFF command to some module without having to define it elsewhere in the software.

Email Notification

  • This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.

Self-explanatory; lets you have MyHouse send a predefined email.

Network Access

  • This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.

Lets you connect or disconnect from the MyHouse Online server.

Dialup Service

  • This command requires that you have MyHouse Online and leave the CM15A attached to your runnning PC.

If you have a modem, this will make it dial out or hang up.