atbswp icon indicating copy to clipboard operation
atbswp copied to clipboard

Feature request: Infinite loop option on exported executables

Open wyqydsyq opened this issue 3 years ago • 1 comments
trafficstars

Checklist

  • [x] I use the latest release of atbswp
  • [x] The issue is not existing yet

Description

It would be nice if exported executables supported an option for replaying X amount of times and/or indefinitely like you can do with the GUI

wyqydsyq avatar Jan 19 '22 02:01 wyqydsyq

If I understand correctly, you want the compile feature to save the number of repetitions/infinite playback settings? I am not sure I agree with that. Since what you have is an executable, you can use the CLI to manage the number of repetitions or even the infinite playback (granted it will be more difficult to stop than using the atbswp interface) if you want. In bash if you want to execute that n times, the command will look like:

for i in `seq 1 n`; python capture.pyc; done

If you want to add a 3 seconds delay between each run:

for i in `seq 1 n`; python capture.pyc; sleep 3; done

If you want something infinite instead:

while true; do python capture.pyc; done

Maybe you have in mind another use case that I've not covered? Feel free to mention it.

RMPR avatar Feb 02 '22 09:02 RMPR