I modified the macro a bit to be able to test it here now.
- Code: Select all
exec.Setoutpin(2,10);
exec.Clroutpin(2,10);
if (!AS3.GetLED(10))
{
string Num ="2";
exec.AddStatusmessage("one");
while(!AS3.GetLED(10))
{
// Wait for Button Release
Thread.Sleep(100);
exec.AddStatusmessage("two");
}
}
It checks the port#1 pin#10 LED for the IF and the WHILE loop.
So, when I'm triggering the input it writes "one" and then it writes "two" multiple times until I release the input.
Then when I'm triggering the input again it does the same again.
So, the macro works fine as it should.