I'm trying to set up an alarm system using the MS16A motion sensor. I use a flag to indicate if the alarm is "armed" and, if I set it to armed when I leave the house, I wish to have a bit of time to press the "disarm" button, when I get back to the house, before the alarm sounds. So, all I want the macro to do is, when the macro is triggered by the sensor, first check to see if the alarm is armed, if it is not do nothing, if it is on, wait a minute for me to disarm the alarm. After that one minute timer expires, check again to see if the alarm is still armed. If it is, sound the alarm, if it is not, do nothing. IOWs:
Sensor triggers macro
Is flag on?
No - exit macro
Yes - delay one minute
Is flag on?
No - exit macro
Yes - trigger the alarm
It would be easy if it were possible to put a delay between two conditions but it's not (I think) so two macros seem to be needed (1st condition followed by delay in one 1st macro and 2nd condition in the 2nd macro).
Also, I had installed AHP in the 386 programs directory but re-installed it to the C: directory when I installed Lifeguard as I read in someone's comments that that is required for proper operation. One thing I noticed though was that a small circular icon is now missing from the module icons (just to the right of the comment and display log icons). IIRC that now missing icon was to disable a module (or macro?), or something similar, without having to delete it (which would be a desirable feature). Is there any way of getting that icon back??
And, how do you trigger a macro by a timer (if I understand what you wrote correctly)?
Thank you again. All the assistance is appreciated!