From 18fbe816c4af80c89c0a154b79f5e2f6ba946264 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:26:43 +0200 Subject: [PATCH 01/25] Delete ChangeWallpaper.vb --- src/ChangeWallpaper.vb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/ChangeWallpaper.vb diff --git a/src/ChangeWallpaper.vb b/src/ChangeWallpaper.vb deleted file mode 100644 index a53799e..0000000 --- a/src/ChangeWallpaper.vb +++ /dev/null @@ -1,20 +0,0 @@ -Imports System.Runtime.InteropServices - -Public Module ChangeWallpaper - Public Declare Unicode Function SystemParametersInfoW Lib "user32" (ByVal uAction As Integer, ByVal uParam As Integer, ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer - Public Const SPI_SETDESKWALLPAPER = 20 - Public Const SPIF_SENDWININICHANGE = &H2 - Public Const SPIF_UPDATEINIFILE = &H1 - -Public Sub Main() - Dim Ret as Integer - Dim FName As String - 'Fname = "C:\Windows\Web\Wallpaper\Theme1\img1.jpg" - 'This below line which is commented out takes a filename on the command line - FName = Replace(Command(), """", "") - - Ret = SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0, FName, SPIF_SENDWININICHANGE + SPIF_UPDATEINIFILE) - If Ret = 0 Then Msgbox(err.lastdllerror) -End Sub - -End Module \ No newline at end of file From 5a9a9d481a0de2a9794ace394ac9147eab0faa3e Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:27:02 +0200 Subject: [PATCH 02/25] Delete RunSilent.vb --- src/RunSilent.vb | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/RunSilent.vb diff --git a/src/RunSilent.vb b/src/RunSilent.vb deleted file mode 100644 index e6261b6..0000000 --- a/src/RunSilent.vb +++ /dev/null @@ -1,11 +0,0 @@ -Imports System.Diagnostics - -Public Module ChangeWallpaper - Public Sub Main() - Dim myProcess As New Process - myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden - myProcess.StartInfo.CreateNoWindow = True - myProcess.StartInfo.FileName = (System.AppDomain.CurrentDomain.BaseDirectory() + "run.bat") - myProcess.Start() - End Sub -End Module From fe19186d698178abdc5f3d84e35fa17fff3208c7 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:27:36 +0200 Subject: [PATCH 03/25] Delete compile.bat --- src/compile.bat | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 src/compile.bat diff --git a/src/compile.bat b/src/compile.bat deleted file mode 100644 index 7a9982d..0000000 --- a/src/compile.bat +++ /dev/null @@ -1,2 +0,0 @@ -C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc "%~dp0\ChangeWallpaper.vb" /out:"%~dp0\ChangeWallpaper.exe" /target:winexe -C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc "%~dp0\RunSilent.vb" /out:"%~dp0\RunSilent.exe" /target:winexe \ No newline at end of file From 45502cc74917842e944e301a7862a6ba8e0d7e58 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:35:18 +0200 Subject: [PATCH 04/25] powershell wallpaper change + better method of hiding window: bye bye exes! --- src/run.bat | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/run.bat b/src/run.bat index ba40eb3..6b50c27 100644 --- a/src/run.bat +++ b/src/run.bat @@ -1,10 +1,13 @@ @echo off -set home=%~dp0 -cd /D "%~dp0" -cd ..\mpv -%home%ChangeWallpaper.exe %home%..\media\first.bmp +if not [%1]==[ch] (start conhost cmd /c "" "%~dpnx0" ch & exit) +powershell -NoP -W hidden ; exit +set "_home=%~dp0" +cd /D "%_home%" + +powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" + timeout 1 -start /B mpv %home%..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress +start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress cd ..\src -timeout 5 -%home%ChangeWallpaper.exe %home%..\media\last.bmp +timeout 4 +powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" From b54641243cdf74ac11f42db402c8de1f4a52a16a Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:35:58 +0200 Subject: [PATCH 05/25] powershell wallpaper change: bye bye exe --- src/off.bat | 3 --- src/prep.bat | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 src/off.bat create mode 100644 src/prep.bat diff --git a/src/off.bat b/src/off.bat deleted file mode 100644 index d7f28ed..0000000 --- a/src/off.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -set home=%~dp0 -%home%ChangeWallpaper.exe %home%../media/first.bmp diff --git a/src/prep.bat b/src/prep.bat new file mode 100644 index 0000000..3a06972 --- /dev/null +++ b/src/prep.bat @@ -0,0 +1,3 @@ +@echo off +set "_home=%~dp0" +powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" From 7878642eee64e1c058c7cb950599343bcf539c8c Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:36:51 +0200 Subject: [PATCH 06/25] final change, adapting to exe removal and off.bat rename --- install.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index 94a3801..f3a7382 100644 --- a/install.bat +++ b/install.bat @@ -1,7 +1,7 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) -SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "%~dp0src\RunSilent.exe" -SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "%~dp0src\off.bat" +SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "%~dp0src\run.bat" +SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "%~dp0src\prep.bat" cls echo AutoBloom has been installed! From dd981e4a68155f0fe60e89319891cd05ddee0882 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:38:15 +0200 Subject: [PATCH 07/25] aborts if not admin --- install.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/install.bat b/install.bat index f3a7382..5659637 100644 --- a/install.bat +++ b/install.bat @@ -1,5 +1,6 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) +dism || exit SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "%~dp0src\run.bat" SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "%~dp0src\prep.bat" cls From be77c8756de65b1ec99e4fb22202f3de268971f6 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:39:12 +0200 Subject: [PATCH 08/25] aborts if not admin --- uninstall.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/uninstall.bat b/uninstall.bat index 23c8a80..7463003 100644 --- a/uninstall.bat +++ b/uninstall.bat @@ -1,5 +1,6 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) +dism || exit SCHTASKS /DELETE /TN "AUTOBLOOM" /f SCHTASKS /DELETE /TN "AUTOBLOOM PREP" /f cls From c50d5d0e4668199ed9b1edbe6d034b261e2b37a4 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sat, 8 Apr 2023 23:40:15 +0200 Subject: [PATCH 09/25] powershell wallpaper change: bye bye exes! --- src/wallpaper.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/wallpaper.ps1 diff --git a/src/wallpaper.ps1 b/src/wallpaper.ps1 new file mode 100644 index 0000000..330d04f --- /dev/null +++ b/src/wallpaper.ps1 @@ -0,0 +1,20 @@ +$imgPath = $args[0] +$code = @' +using System.Runtime.InteropServices; +namespace Win32{ + + public class Wallpaper{ + [DllImport("user32.dll", CharSet=CharSet.Auto)] + static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; + + public static void SetWallpaper(string thePath){ + SystemParametersInfo(20,0,thePath,3); + } + } + } +'@ + +add-type $code + +#Apply the Change on the system +[Win32.Wallpaper]::SetWallpaper($imgPath) \ No newline at end of file From 73600246020a056502125cbdaf25144d2bd3ddd1 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 00:01:06 +0200 Subject: [PATCH 10/25] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 686983c..e7971aa 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,8 @@ Note that this software uses scheduled tasks to run during startup. If you move To uninstall just run `uninstall.bat`. -If you encounter "some virus detected" in the release, delete two `.exe` files inside `src` folder and open `compile.bat` in the same folder. It will regenerate new exe files so (hopefully) your antivirus won't complain anymore. - ## Credits Uses [MPV](https://mpv.io). -All media contents are belongs to Microsoft. +All media contents belong to Microsoft. From 703d5e16e7a3678d225b986e8dd9fcf7294a15ce Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 00:01:37 +0200 Subject: [PATCH 11/25] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e7971aa..56aaba8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# AutoBloom v1.0 +# AutoBloom -Make Windows 11 Bloom Wallpaper get animated when signing in. +Make Windows 11 Bloom Wallpaper get animated when signing in (light mode only). https://user-images.githubusercontent.com/20214420/136711426-270f258c-090a-4189-a4fb-3e5863ec1586.mp4 From 791b06dba964c01df126f558c1f94225f97c0a1a Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 02:58:46 +0200 Subject: [PATCH 12/25] mpv.conf to args (not tested yet) --- src/run.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run.bat b/src/run.bat index 6b50c27..76d3dab 100644 --- a/src/run.bat +++ b/src/run.bat @@ -7,7 +7,7 @@ cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" timeout 1 -start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress -cd ..\src +start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --deband=yes --hwdec=auto --border=no --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 + timeout 4 powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" From 20f5807f2536ad1b99a18ca96d3d1672f39e63c0 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 10:56:19 +0200 Subject: [PATCH 13/25] mpv.conf to args --- src/run.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/run.bat b/src/run.bat index 76d3dab..1aead70 100644 --- a/src/run.bat +++ b/src/run.bat @@ -7,7 +7,8 @@ cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" timeout 1 -start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --deband=yes --hwdec=auto --border=no --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 - +start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress ^ + --deband --hwdec=auto --no-border --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100%% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 +cd ..\src timeout 4 powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" From 3dc09eddc7e6ff90d92e7f1cd8a7344b2affb3cd Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 10:56:30 +0200 Subject: [PATCH 14/25] Delete mpv.conf --- mpv/mpv.conf | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 mpv/mpv.conf diff --git a/mpv/mpv.conf b/mpv/mpv.conf deleted file mode 100644 index 5102c20..0000000 --- a/mpv/mpv.conf +++ /dev/null @@ -1,12 +0,0 @@ -deband=yes -hwdec=auto -border=no -cache=yes -demuxer-max-bytes=488281KiB -demuxer-readahead-secs=120 -autofit=100% -player-operation-mode=pseudo-gui -input-ipc-server=\\.\pipe\mpvsocket -force-window=yes -# Only recommended volume for showcase non for daily use -volume=0 From 2b62f3c6beb33b725b04036e815ab578bcbe42f2 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 11:00:10 +0200 Subject: [PATCH 15/25] Update and rename README.txt to README.md --- mpv/{README.txt => README.md} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename mpv/{README.txt => README.md} (50%) diff --git a/mpv/README.txt b/mpv/README.md similarity index 50% rename from mpv/README.txt rename to mpv/README.md index 7e02c65..d2cb8ce 100644 --- a/mpv/README.txt +++ b/mpv/README.md @@ -2,8 +2,8 @@ Version: mpv-x86_64-20181002 Source: https://github.com/mpv-player/mpv Files: - - mpv.exe - - mpv.com - - libbdplus.dll - - libaacs.dll - - mpv.conf +- mpv.exe +- mpv.com +- libbdplus.dll +- libaacs.dll +- ~mpv.conf~ From f8dc29a8ad4d74ca45a36a3f6b720333243a09bc Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 11:37:35 +0200 Subject: [PATCH 16/25] add virus removal explanation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 56aaba8..cdeeafb 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Note that this software uses scheduled tasks to run during startup. If you move To uninstall just run `uninstall.bat`. +The program should not be detected as a virus anymore, as it does no longer contain compiled VB code. Check [this Virustotal scan](https://www.virustotal.com/gui/file/c4d0e098ca71db2645097d6535b41835e1ed09184bd608d4a326f42f6e3de775?nocache=1) from the [latest update](/willnode/autobloom/pull/16). + ## Credits Uses [MPV](https://mpv.io). From b4edfb2d5d99c94c845dfd2bd9810ed9b242832b Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 17:56:23 +0200 Subject: [PATCH 17/25] add vbs silent --- install.bat | 6 +++--- src/prep.bat | 2 +- src/silent.vbs | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/silent.vbs diff --git a/install.bat b/install.bat index 5659637..a50b8f8 100644 --- a/install.bat +++ b/install.bat @@ -1,9 +1,9 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) -dism || exit -SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "%~dp0src\run.bat" -SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "%~dp0src\prep.bat" +SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "cscript //NOLOGO '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" +SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "cscript //NOLOGO '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat''" cls echo AutoBloom has been installed! + timeout 3 >nul diff --git a/src/prep.bat b/src/prep.bat index 3a06972..2767e9f 100644 --- a/src/prep.bat +++ b/src/prep.bat @@ -1,3 +1,3 @@ @echo off set "_home=%~dp0" -powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" +powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" diff --git a/src/silent.vbs b/src/silent.vbs new file mode 100644 index 0000000..3607cad --- /dev/null +++ b/src/silent.vbs @@ -0,0 +1,2 @@ +Set objShell = WScript.CreateObject("WScript.Shell") +call objShell.Run(WScript.Arguments(0), 0, false) \ No newline at end of file From bb0f13180a2abe8f29adc3875e245fe248542d3e Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 17:57:04 +0200 Subject: [PATCH 18/25] switch to wscript for no window --- install.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index a50b8f8..d1d42bf 100644 --- a/install.bat +++ b/install.bat @@ -1,7 +1,7 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) -SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "cscript //NOLOGO '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" -SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "cscript //NOLOGO '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat''" +SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" +SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat''" cls echo AutoBloom has been installed! From 331812fd4fcf6d61b4b0242842cbf76bd35fae77 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 18:10:16 +0200 Subject: [PATCH 19/25] fixed dumb error (prep.bat) lol --- install.bat | 4 ++-- src/prep.bat | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index d1d42bf..d121fa4 100644 --- a/install.bat +++ b/install.bat @@ -1,7 +1,7 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) -SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" -SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat''" +SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" +SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat' '" cls echo AutoBloom has been installed! diff --git a/src/prep.bat b/src/prep.bat index 2767e9f..6c99101 100644 --- a/src/prep.bat +++ b/src/prep.bat @@ -1,3 +1,4 @@ @echo off set "_home=%~dp0" +cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" From b8d92ee0d2d24ceb0621941ff2eace588eea3f84 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 18:57:03 +0200 Subject: [PATCH 20/25] run whether user is logged in or not - VERY IMPORTANT! --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index d121fa4..eba7ce2 100644 --- a/install.bat +++ b/install.bat @@ -1,7 +1,7 @@ @echo off if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" -SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat' '" +SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat' '" /RU "SYSTEM" cls echo AutoBloom has been installed! From 0f4076a06651e3453f2e68b8c745ca1cfc9c022e Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 18:57:23 +0200 Subject: [PATCH 21/25] disable window dragging! --- src/run.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run.bat b/src/run.bat index 1aead70..64f799b 100644 --- a/src/run.bat +++ b/src/run.bat @@ -7,8 +7,8 @@ cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" timeout 1 -start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress ^ +start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --no-window-dragging ^ --deband --hwdec=auto --no-border --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100%% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 cd ..\src -timeout 4 +timeout 2 powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" From 6bce226278ab14b8faaf7c19dde875a6c4b3b8e0 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 18:59:27 +0200 Subject: [PATCH 22/25] no start /b because why --- src/run.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.bat b/src/run.bat index 64f799b..394a031 100644 --- a/src/run.bat +++ b/src/run.bat @@ -7,7 +7,7 @@ cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" timeout 1 -start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --no-window-dragging ^ +start ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --no-window-dragging ^ --deband --hwdec=auto --no-border --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100%% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 cd ..\src timeout 2 From 6f7b3837a6b073b006aedf277c6dc1b9e26a806c Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:00:24 +0200 Subject: [PATCH 23/25] revert to start /b --- src/run.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.bat b/src/run.bat index 394a031..64f799b 100644 --- a/src/run.bat +++ b/src/run.bat @@ -7,7 +7,7 @@ cd /D "%_home%" powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" timeout 1 -start ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --no-window-dragging ^ +start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress --no-window-dragging ^ --deband --hwdec=auto --no-border --cache=yes --demuxer-max-bytes=488281KiB --demuxer-readahead-secs=120 --autofit=100%% --player-operation-mode=pseudo-gui --input-ipc-server=\\.\pipe\mpvsocket --force-window=yes --volume=0 cd ..\src timeout 2 From 9579bdf582d010b0f56fd0fb984ac194d571abe9 Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:13:22 +0200 Subject: [PATCH 24/25] update demo video --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index cdeeafb..c68aca3 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ Make Windows 11 Bloom Wallpaper get animated when signing in (light mode only). -https://user-images.githubusercontent.com/20214420/136711426-270f258c-090a-4189-a4fb-3e5863ec1586.mp4 - +https://user-images.githubusercontent.com/59333567/230786657-43061ac4-04f2-4b04-9472-18fbdeee424d.mp4 ## Installation From 85b6e72befa06c60911fcdacca61fb8693f64f5a Mon Sep 17 00:00:00 2001 From: Aritz T <59333567+aritz331@users.noreply.github.com> Date: Mon, 10 Apr 2023 03:02:39 +0200 Subject: [PATCH 25/25] Update install.bat Co-authored-by: Wildan M --- install.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/install.bat b/install.bat index eba7ce2..820e204 100644 --- a/install.bat +++ b/install.bat @@ -2,6 +2,7 @@ if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) SCHTASKS /CREATE /SC ONLOGON /TN "AUTOBLOOM" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\run.bat' ch'" SCHTASKS /CREATE /SC ONSTART /TN "AUTOBLOOM PREP" /TR "wscript '%~dp0src\silent.vbs' 'conhost cmd /c '%~dp0src\prep.bat' '" /RU "SYSTEM" +powershell -Command "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned" cls echo AutoBloom has been installed!