Jump to content

program active test


oskrypuch

Recommended Posts

Posted

Is there a way to directly test in an IF statement if another program is active/idle, other than setting/resetting another program as a variable to show the state?

 

* Orest

Posted
Is there a way to directly test in an IF statement if another program is active/idle,

 

I don't believe so, but it is possible that I misunderstand your question.

Posted

From the Program Summary page, programs can be listed as Enabled (on/off), Activity (idle/running 'xxx') and Status (true/false)

 

In an IF statement you can test for the Status like so:

 

If
   Program 'DoSomething' is True
...

 

I don't see any way to directly test for the Activity of a program, IOW whether it is currently idle or running Then or Else, etc.

 

You could handle it with a separate Program "variable", but that is a bit clumsy.

 

That was what I was asking.

 

* Orest

Posted

A little less clumsy may be to put a "Run Program 'DoSomething' (Else Path)" as the very last statement of your THEN branch. That way, the Status of program 'DoSomething" will only be True if the THEN branch is running.

Posted

Well, that is more or less using a program as a variable, but yes it is a little more elegant.

 

Like so ...

 

 

Program DoSomething

If 

Then
do stuff
do stuff
Run Program 'DoSomething' (else)

Else



 

Thanks!

 

* Orest

Posted

I could fine a use for such a feature.... maybe you would want to repost in the "Product Requests" or GUI Enhancements.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...