|
Post by Johnc on Dec 3, 2018 16:07:48 GMT
191 | IF | FILE SIZE | C:\Users\John\Downloads\%STRING%_report.pdf | GREATER THAN | 30000 | CONTINUE
Is there a way to time this out similar to the time-out provision in "IF COLOR CHANGES"? Thanks!
|
|
|
Post by Johnc on Dec 3, 2018 16:39:04 GMT
I guess I could do the following: (for a >1sec time out)
194 | RUN ACTION | | | | WAIT SECONDS | 1 195 | IF | FILE SIZE | C:\Users\John\Downloads\%STRING%_report.pdf | LESS THAN | 30000 | GOTO MACRO LINE | 163
|
|
|
Post by Steve on Dec 4, 2018 5:26:02 GMT
Yeah that works. Or a little routine making use of %return% and integer comparison like this to wait 5 seconds: 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::0 2 | RUN ACTION | MESSAGE PROMPT | Before file check::Before::0 3 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::+1 4 | IF | INTEGER VARIABLE | %INTEGER% | >= | 5 | GOTO MACRO LINE | %return%+4 5 | RUN ACTION | WAIT SECONDS | 1 6 | IF | FILE SIZE | D:\Macro\RX\VARS.txt | LESS THAN | 3000 | GOTO MACRO LINE | %return%-2 7 | RUN ACTION | MESSAGE PROMPT | After file check::After::0 %return% holds the value for the last completed line. So at line 4 %return% is equal to 3. So in-turn GOTO MACRO LINE 3+4=7 At line 6 %return% equals to 5. So in-turn GOTO MACRO LINE 5-2=3.
|
|
|
Post by Johnc on Dec 5, 2018 1:57:37 GMT
Thanks Steve for the alternative solution using %return%. Looks interesting but I couldn't get %return% to work last time. Let me give that another try again next time.
|
|