Reset Loop Counter if Procedure is called.
Posted: 16 Jul 2020, 20:46
Note: I am reposting this thread that I previously deleted since I thought I fixed it but clearly I didn't
Hello, it's no secret that Actiona is accessible to people like me who wants to automate things but have no experience in programming whatsoever, so I might need a little help over here:
Sometimes the software am trying automate locks down or crashes at random times and it's very very hard to determine if the program it's locked or isn't, here's how my current workflow looks like:
They're a bunch of 'Find Image' that call procedures if they get a hit. What I am trying to do is so if a procedure is called the loop counter for Line 15 resets to a certain value (in this case 10), for example: if any Find Image gets a hit on loop 4 out of 10, it resets the counter for Line 15 back to 10, if 10 loops happens with no match, it continues to Line 16 (that line reset the software that's locked), then loops back to the first loop that contains all the Find Image.
Already tried to set the loop counter from Line 15 to a variable that resets at the end of every procedure (procedure does its thing and as a last step it sets a variable to 10, then goes back to Line 1), but that's clearly not how that works since the first loop counter retains its original value and proceeds to Line 16 after 10 loops, even if a procedure was called.
So I am a bit lost would appreciate any insight since I have zero experience in coding. Thanks!
Hello, it's no secret that Actiona is accessible to people like me who wants to automate things but have no experience in programming whatsoever, so I might need a little help over here:
Sometimes the software am trying automate locks down or crashes at random times and it's very very hard to determine if the program it's locked or isn't, here's how my current workflow looks like:
They're a bunch of 'Find Image' that call procedures if they get a hit. What I am trying to do is so if a procedure is called the loop counter for Line 15 resets to a certain value (in this case 10), for example: if any Find Image gets a hit on loop 4 out of 10, it resets the counter for Line 15 back to 10, if 10 loops happens with no match, it continues to Line 16 (that line reset the software that's locked), then loops back to the first loop that contains all the Find Image.
Already tried to set the loop counter from Line 15 to a variable that resets at the end of every procedure (procedure does its thing and as a last step it sets a variable to 10, then goes back to Line 1), but that's clearly not how that works since the first loop counter retains its original value and proceeds to Line 16 after 10 loops, even if a procedure was called.
So I am a bit lost would appreciate any insight since I have zero experience in coding. Thanks!