From c63185f4188af24dd33fc0e7096433d58c797eed Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Mon, 4 Nov 2024 03:25:10 -0800 Subject: [PATCH] Update Enable GamesDows Playnite V3 no welcome ui.bat --- Enable GamesDows Playnite V3 no welcome ui.bat | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Enable GamesDows Playnite V3 no welcome ui.bat b/Enable GamesDows Playnite V3 no welcome ui.bat index 5b92370..55af39f 100644 --- a/Enable GamesDows Playnite V3 no welcome ui.bat +++ b/Enable GamesDows Playnite V3 no welcome ui.bat @@ -23,11 +23,7 @@ echo whoami ^| find /i "%%USERNAME%%" ^>nul echo if ERRORLEVEL 1 exit echo rem Set taskbar to autohide -echo powershell -command ^^ - "^$settingsPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';" ^^ - "^$settings = (Get-ItemProperty -Path ^$settingsPath -Name 'Settings').Settings;" ^^ - "^$settings[8] = ^$settings[8] -bor 0x08;" ^^ - "Set-ItemProperty -Path ^$settingsPath -Name 'Settings' -Value ^$settings" +echo powershell -command "$settingsPath='HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3'; $settings=(Get-ItemProperty -Path $settingsPath -Name 'Settings').Settings; $settings[8]=$settings[8] -bor 0x08; Set-ItemProperty -Path $settingsPath -Name 'Settings' -Value $settings" echo rem Start Explorer echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f @@ -35,14 +31,8 @@ echo rem Starting Explorer echo start C:\Windows\explorer.exe echo rem Unset taskbar autohide and refresh taskbar without restarting explorer.exe -echo powershell -command ^^ - "^$settingsPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';" ^^ - "^$settings = (Get-ItemProperty -Path ^$settingsPath -Name 'Settings').Settings;" ^^ - "^$settings[8] = ^$settings[8] -band 0xF7;" ^^ - "Set-ItemProperty -Path ^$settingsPath -Name 'Settings' -Value ^$settings;" ^^ - "^$sig = '[DllImport(\"user32.dll\")] public static extern int SendMessageTimeout(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam, uint fuFlags, uint uTimeout, out IntPtr lpdwResult);';" ^^ - "Add-Type -MemberDefinition ^$sig -Name 'Win32SendMessageTimeout' -Namespace 'Win32Functions';" ^^ - "[Win32Functions.Win32SendMessageTimeout]::SendMessageTimeout([IntPtr]::Zero, 0x1A, [IntPtr]::Zero, [IntPtr]::Zero, 0x0002, 1000, [ref]([IntPtr]::Zero));" +echo powershell -command "$settingsPath='HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3'; $settings=(Get-ItemProperty -Path $settingsPath -Name 'Settings').Settings; $settings[8]=$settings[8] -band 0xF7; Set-ItemProperty -Path $settingsPath -Name 'Settings' -Value $settings; $sig='[DllImport(\\""user32.dll\\"")] public static extern int SendMessageTimeout(IntPtr hWnd,uint Msg,IntPtr wParam,IntPtr lParam,uint fuFlags,uint uTimeout,out IntPtr lpdwResult);'; Add-Type -MemberDefinition $sig -Name 'Win32SendMessageTimeout' -Namespace 'Win32Functions'; [Win32Functions.Win32SendMessageTimeout]::SendMessageTimeout([IntPtr]::Zero,0x1A,[IntPtr]::Zero,[IntPtr]::Zero,0x0002,1000,[ref]([IntPtr]::Zero));" + REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%PLAYNITE_PATH%" /f ) > "%SCRIPT_PATH%"