Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Delay --Request #4

Open
Cananbolt opened this issue Apr 11, 2022 · 4 comments
Open

Add Delay --Request #4

Cananbolt opened this issue Apr 11, 2022 · 4 comments

Comments

@Cananbolt
Copy link

I would like to know if there can be a way to add a delay to the script.

For example, say I put a 5-second delay. After those 5 seconds, the chapter skips.

@po5
Copy link
Owner

po5 commented Apr 14, 2022

You can wrap time-pos property setting inside an anonymous function with mp.addtimeout.
Interesting idea, may implement whenever I have a burst of motivation (and also implement more user requested features like pausing), but for now you'll have to do it yourself.

@Cananbolt
Copy link
Author

Sounds good. Thank you for acknowledging the request. Hopefully, sometime in the future, you may fulfill it when you have the chance. Nonetheless, thank you for the script.

@po5
Copy link
Owner

po5 commented Sep 6, 2022

addtimeout solution: what if you get to a skipped chapter and decide to pause before the 5 seconds? I wouldn't want it to jump.
Adding an offset to chapter times would be a better solution, and play nicer with other functionality we may want to add.

@Cananbolt
Copy link
Author

Now that you mentioned it, that is a great point. Could the offset to chapter times be completed by a keybind? Something that may toggle to script on or off. On default, it would be on letting it skip the chapter, and once pressed, it will be off letting the chapter play all the way through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants