mirror of
https://github.com/jazir555/GamesDows.git
synced 2025-06-06 15:47:22 +02:00
Update Enable GamesDows Playnite V3.bat
This commit is contained in:
parent
662eb8c44b
commit
f1b608d877
@ -30,11 +30,7 @@ REM Disable Logon UI
|
||||
reg add "%KEY_NAME%" /v DisableLogonUI /t REG_DWORD /d 1 /f
|
||||
|
||||
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"
|
||||
|
||||
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f
|
||||
echo rem Start Explorer
|
||||
@ -48,14 +44,8 @@ echo rem Wait for a specific delay before unsetting autohide
|
||||
echo timeout /t 5 /nobreak ^>nul
|
||||
|
||||
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 DisableLogonUI /t REG_DWORD /d 1 /f
|
||||
REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%PLAYNITE_PATH%" /f
|
||||
reg add "%KEY_NAME%" /v DisableLogonUI /t REG_DWORD /d 1 /f
|
||||
|
Loading…
x
Reference in New Issue
Block a user