Last active
March 17, 2023 15:51
-
-
Save johnsusek/243a291097715bc779090623aba1c051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cyberpunk2077 launch script to skip final intro movie | |
# Usage: powershell -ExecutionPolicy Bypass -File "Cyberpunk 2077 - Spacebar Pusher.ps1" | |
# After launch this script will tap spacebar once every second | |
# until $stopAfter many seconds have elapsed | |
# Tweak this number to match your system | |
# If this number is too low the intro won't be skipped | |
# In this number is too high spacebar will keep being tapped in the main menu | |
$stopAfter = 25 | |
$path = "C:\Program Files\Epic Games\Cyberpunk2077\bin\x64\Cyberpunk2077.exe" | |
$args = "-modded --launcher-skip -skipStartScreen" | |
$process = [diagnostics.process]::start($path, $args) | |
$_ = $process.WaitForInputIdle(10000); | |
Start-Sleep 1 | |
$title = "Cyberpunk 2077 (C) 2020 by CD Projekt RED" | |
$shell = New-Object -ComObject wscript.shell | |
for ($idx = 1; $idx -lt $stopAfter; $idx++) | |
{ | |
$_ = $shell.AppActivate($title) | |
$_ = $shell.SendKeys(' ') | |
Start-Sleep 1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment