Are you actually using X10?
If so,
Do you travel around the open seas in a huge wooden vessel flying a black flag with a motley crew?
All of what you have asked above is achievable through scripting. This isn't a requests board. You need to learn how to do these things, or at least try. Go and try to make a script work, if it doesn't, come back here and post your script explaining what is wrong and someone might help you.
I personally, am completely baffled that more and more people are miraculously obtaining copies of X10 when it hasn't been on the market for a LONG time!