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

[FEATURE REQUEST] - Possibility to change the wallpapers automatically every X minutes #26

Closed
SegoCode opened this issue Dec 8, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@SegoCode
Copy link
Owner

SegoCode commented Dec 8, 2022

Hi sego !

I just saw your autowall program and I like it. Very light and easy to use. I'm not a programmer .... but I think that one important thing is >missing: the possibility to change the wallpapers automatically every X minutes ?

Is it possible to add it in the configuration file? If so, how? maybe in a future update?

Thanks in advance

@SegoCode SegoCode added the enhancement New feature or request label Dec 8, 2022
@SegoCode
Copy link
Owner Author

SegoCode commented Dec 8, 2022

Hi!

Thank you for your kind words about the AutoWall. I'm glad you find it easy to use.

The ability to automatically change the wallpaper every X minutes would be a useful feature.

If you don't want to wait a future update I will explain that you can change wallpaper without opening AutoWall, to send a video to the mpv pipe at any time, you can use the following command in the terminal:

echo "loadfile path/to/video.mp4" >\\.\pipe\mpvsocket

This command sends the "loadfile" command followed by the path to the video file to the mpv pipe. This will cause mpv to load and play the specified video file.

For example, if your video file is located at "C:\Videos\myvideo.mp4", you would use the following command:

echo "loadfile C:\Videos\myvideo.mp4" >\\.\pipe\mpvsocket

it is possible to create a batch script that changes the video being played by mpv at regular intervals using the mpv pipe.

@echo off
:loop
echo "loadfile path/to/video1.mp4" >\\.\pipe\mpvsocket
timeout /t 60
echo "loadfile path/to/video2.mp4" >\\.\pipe\mpvsocket
timeout /t 60
goto loop

This script sends the "loadfile" command followed by the path to the first video file to the mpv pipe, which causes mpv to load and play the specified video. It then waits for 60 seconds using the "timeout" command, and then sends the "loadfile" command followed by the path to the second video file to the mpv pipe. This process is repeated in a loop.

You can modify this script to use different video files and to change the interval at which the videos are changed. You can also add additional commands to control playback, such as "pause" or "stop".

I hope you find it helpful!

@SegoCode SegoCode changed the title Possibility to change the wallpapers automatically every X minutes [FEATURE REQUEST] - Possibility to change the wallpapers automatically every X minutes May 11, 2023
@SegoCode
Copy link
Owner Author

Added in 1.12 support edl files to make a playlist or control the loop time

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

No branches or pull requests

1 participant