|
Post by chyachyamaru on Jul 21, 2021 13:30:32 GMT
I often use simple macros such as continuous clicks at 300 ms intervals (150 ms for down and up respectively), but I find that the actual interval when playing the macro is dependent on the condition of my system, i.e. playing the same number of loops results in different playback times, with longer playback times when the system is busier. So can I specify a duration of playback to stop the macro playing?
|
|
|
Post by philranger on Jul 22, 2021 8:27:23 GMT
|
|
|
Post by zeak on Jul 22, 2021 23:07:10 GMT
So can I specify a duration of playback to stop the macro playing? Hi Chyachyamaru, First off, Welcome to the Forum. Yes you can use the internal macro time to determine how long the macro has run for and put a simple stop action if it goes over your desired time. In the example below line 4 is a if statement that checks against my defined 30 second time. 4 | IF | DECIMAL VARIABLE | %TIME_MACRO% | GREATER THAN | %INTEGER% | STOP
you can also use the below if your not interested in the decimal places. 4 | IF | INTEGER VARIABLE | %TIME_MACRO% | GREATER THAN | %INTEGER% | STOP
|
|
|
Post by chyachyamaru on Jul 23, 2021 1:12:47 GMT
Thank you for the suggestion, I think this will solve my problem.
|
|