Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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.
5 changes: 3 additions & 2 deletions install.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@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"
dism || exit
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!
Expand Down
20 changes: 0 additions & 20 deletions src/ChangeWallpaper.vb

This file was deleted.

11 changes: 0 additions & 11 deletions src/RunSilent.vb

This file was deleted.

2 changes: 0 additions & 2 deletions src/compile.bat

This file was deleted.

3 changes: 0 additions & 3 deletions src/off.bat

This file was deleted.

3 changes: 3 additions & 0 deletions src/prep.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
set "_home=%~dp0"
powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp"
17 changes: 10 additions & 7 deletions src/run.bat
Copy link
Collaborator Author

@eltrevii eltrevii Apr 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[line 2] windows terminal minimizing problem fix (by using good ol' conhost - the classic command line window manager)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even if they fix it i wouldnt recommend removing it, because some people might have the version with the problem and apart from that it doesnt really affect anything

Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions src/wallpaper.ps1
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions uninstall.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down