Jump to content

Disable program triggers


larryllix

Recommended Posts

It would make a nice enhancement to be able to disable the triggers for the running program from the same program without stalling the program from executing further.

 

This would useful in so many places where two programs are necessary at the moment.

 

Sample usage.

If
     anytrigger is switched On

Then
     disable thisprogram triggersOnly
     send OnlyOneNotification to Larry youGotaProblem
     do some stuff without retrigger worry
     Wait 24 hours
     enable thisProgram triggersOnly

Else
     --

How simple and structured can it get with this simple option that could be added to the disable program statement?

 

Actual text labels are fictional. Any similaritiy to actual commands, current, past or future, is strictly unintentional.

Link to comment

Workaround:

 

Create a copy the program.

Remove the trigger(s) from the copy.

Enable only one of the two of the programs at a time.

I don't see that working.

The program that triggers the program still needs to trigger the program lines. The copy would have no trigger to initiate it.

 

If we cross ran the untriggered program from the triggered one it would still get retriggered. This is usally done with program 2 disabling program1 with the triggers.

 

 

Where is Roy Rogers when you need him?

Link to comment

If the trigger program is diasbled, and the program w/o triggers is enabled, then you''ll have exactly what you requested:

 

It would make a nice enhancement to be able to disable the triggers for the running program from the same program without stalling the program from executing further.

 

Unless you mean to trigger the program and only then diasable the tirgger.

 

If

        trigger is triggered

 

Then

        disable trigger program

        run triggerless program

        do what you want with trigger program

        buttermilk may help B)

Link to comment

If the trigger program is diasbled, and the program w/o triggers is enabled, then you''ll have exactly what you requested:

 

 

Unless you mean to trigger the program and only then diasable the tirgger.

 

If

        trigger is triggered

 

Then

        disable trigger program

        run triggerless program

        do what you want with trigger program

        buttermilk may help B)

You would have to use the usual two program technique anyway, as the first line should stop execution and the second shouldn't run. The disable needs to be done from the triggerless program.

 

The requested feature would make this possible with just one program in one visible and self-contained idea. No obscure second program disabling and enabling another program. Works but poor practice.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...