The only way is to create a code function.
For example:
Code: Select all
Function void counter()
#startup
int counter;
While(WindowIsOpen())
if (GetDigGateValue("Output", 0) == 1) then
counter = GetNumGateValue("SecondsCounter", 0);
counter = counter + 1;
SetNumGateValue("SecondsCounter", 0, counter);
end
Sleep(1000);
end
end