From bd4074edb14e80eb76bda0bd535b83de0888546c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 16 Jul 2024 18:45:23 +0200 Subject: [PATCH 1/5] Add ZZZ --- windows/fix_mihoyo_shortcut.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/windows/fix_mihoyo_shortcut.bat b/windows/fix_mihoyo_shortcut.bat index 7e25933..e4baad6 100644 --- a/windows/fix_mihoyo_shortcut.bat +++ b/windows/fix_mihoyo_shortcut.bat @@ -26,5 +26,15 @@ PowerShell -Command "" ^ "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-starrail.ico';" ^ "$Shortcut.Save()" +:: ZZZ shortcut +ECHO ZZZ shortcut creation... +PowerShell -Command "" ^ + "$WshShell = New-Object -comObject WScript.Shell;" ^ + "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Zenless Zone Zero.lnk');" ^ + "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ + "$Shortcut.Arguments = 'open --game 3 --region 0 --play';" ^ + "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-zenless.ico';" ^ + "$Shortcut.Save()" + IF NOT "%1"=="yes" PAUSE EXIT /B From 0d29c1bede72e2256eb229b534f167671d6a6e13 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 Jul 2024 10:49:44 +0200 Subject: [PATCH 2/5] Add extra description to shortcuts --- windows/fix_mihoyo_shortcut.bat | 2 ++ windows/installers/fivem.bat | 1 + windows11.bat | 1 + 3 files changed, 4 insertions(+) diff --git a/windows/fix_mihoyo_shortcut.bat b/windows/fix_mihoyo_shortcut.bat index e4baad6..f00616f 100644 --- a/windows/fix_mihoyo_shortcut.bat +++ b/windows/fix_mihoyo_shortcut.bat @@ -24,6 +24,7 @@ PowerShell -Command "" ^ "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ "$Shortcut.Arguments = 'open --game 2 --region 0 --play';" ^ "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-starrail.ico';" ^ + "$Shortcut.Description = 'HSR';" ^ "$Shortcut.Save()" :: ZZZ shortcut @@ -34,6 +35,7 @@ PowerShell -Command "" ^ "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ "$Shortcut.Arguments = 'open --game 3 --region 0 --play';" ^ "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-zenless.ico';" ^ + "$Shortcut.Description = 'ZZZ';" ^ "$Shortcut.Save()" IF NOT "%1"=="yes" PAUSE diff --git a/windows/installers/fivem.bat b/windows/installers/fivem.bat index accfb90..16cb752 100644 --- a/windows/installers/fivem.bat +++ b/windows/installers/fivem.bat @@ -19,6 +19,7 @@ PowerShell -Command "" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\FiveM.lnk');" ^ "$Shortcut.WorkingDirectory = \"$path\";" ^ "$Shortcut.TargetPath = $outFile;" ^ + "$Shortcut.Description = 'GTA';" ^ "$Shortcut.Save()" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v DisplayName /t REG_SZ /d "FiveM" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\FiveM" diff --git a/windows11.bat b/windows11.bat index ac4e15e..2709ced 100644 --- a/windows11.bat +++ b/windows11.bat @@ -216,6 +216,7 @@ PowerShell -Command "" ^ "$exe = (Get-ChildItem $env:LOCALAPPDATA\Microsoft\WinGet\Packages\Ryujinx.Ryujinx_Microsoft.Winget.*\publish\Ryujinx.exe).FullName;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Ryujinx.lnk');" ^ "$Shortcut.TargetPath = $exe;" ^ + "$Shortcut.Description = 'Switch';" ^ "$Shortcut.Save()" From 23836081a13427182e1aae244be841ea3d664f6d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 Jul 2024 11:18:12 +0200 Subject: [PATCH 3/5] Revert "Add extra description to shortcuts" This reverts commit 0d29c1bede72e2256eb229b534f167671d6a6e13. --- windows/fix_mihoyo_shortcut.bat | 2 -- windows/installers/fivem.bat | 1 - windows11.bat | 1 - 3 files changed, 4 deletions(-) diff --git a/windows/fix_mihoyo_shortcut.bat b/windows/fix_mihoyo_shortcut.bat index f00616f..e4baad6 100644 --- a/windows/fix_mihoyo_shortcut.bat +++ b/windows/fix_mihoyo_shortcut.bat @@ -24,7 +24,6 @@ PowerShell -Command "" ^ "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ "$Shortcut.Arguments = 'open --game 2 --region 0 --play';" ^ "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-starrail.ico';" ^ - "$Shortcut.Description = 'HSR';" ^ "$Shortcut.Save()" :: ZZZ shortcut @@ -35,7 +34,6 @@ PowerShell -Command "" ^ "$Shortcut.TargetPath = '!collapse!\!exe!';" ^ "$Shortcut.Arguments = 'open --game 3 --region 0 --play';" ^ "$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-zenless.ico';" ^ - "$Shortcut.Description = 'ZZZ';" ^ "$Shortcut.Save()" IF NOT "%1"=="yes" PAUSE diff --git a/windows/installers/fivem.bat b/windows/installers/fivem.bat index 16cb752..accfb90 100644 --- a/windows/installers/fivem.bat +++ b/windows/installers/fivem.bat @@ -19,7 +19,6 @@ PowerShell -Command "" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\FiveM.lnk');" ^ "$Shortcut.WorkingDirectory = \"$path\";" ^ "$Shortcut.TargetPath = $outFile;" ^ - "$Shortcut.Description = 'GTA';" ^ "$Shortcut.Save()" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v DisplayName /t REG_SZ /d "FiveM" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\FiveM" diff --git a/windows11.bat b/windows11.bat index 2709ced..ac4e15e 100644 --- a/windows11.bat +++ b/windows11.bat @@ -216,7 +216,6 @@ PowerShell -Command "" ^ "$exe = (Get-ChildItem $env:LOCALAPPDATA\Microsoft\WinGet\Packages\Ryujinx.Ryujinx_Microsoft.Winget.*\publish\Ryujinx.exe).FullName;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Ryujinx.lnk');" ^ "$Shortcut.TargetPath = $exe;" ^ - "$Shortcut.Description = 'Switch';" ^ "$Shortcut.Save()" From 3edb360bb9e3468f96c85ce4f985f31e7b9d3759 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 Jul 2024 16:04:53 +0200 Subject: [PATCH 4/5] switch hands --- games/cs2/autoexec.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/cs2/autoexec.cfg b/games/cs2/autoexec.cfg index 5ac5943..8d57d2e 100644 --- a/games/cs2/autoexec.cfg +++ b/games/cs2/autoexec.cfg @@ -10,9 +10,9 @@ exec myconfig unbind "scancode77" bind "scancode77" "disconnect" -// Change hand - CS2 doesnt support left hand yet -// unbind "a" -// bind "a" "toggle cl_righthand 0 1" +// Change hand +unbind "a" +bind "a" "switchhands" // FPS in tab // CS2: Not working in endscreen // alias "+scorenet" "+showscores; cl_showfps 1" From 0e9adeafd2483167699fc74ab56bee7f0238d616 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 Jul 2024 16:18:30 +0200 Subject: [PATCH 5/5] fix scancode --- games/cs2/autoexec.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/cs2/autoexec.cfg b/games/cs2/autoexec.cfg index 8d57d2e..df33f56 100644 --- a/games/cs2/autoexec.cfg +++ b/games/cs2/autoexec.cfg @@ -11,8 +11,8 @@ unbind "scancode77" bind "scancode77" "disconnect" // Change hand -unbind "a" -bind "a" "switchhands" +unbind "scancode20" +bind "scancode20" "switchhands" // FPS in tab // CS2: Not working in endscreen // alias "+scorenet" "+showscores; cl_showfps 1"