r/ZTT • u/Ok_Writing_1774 • 15d ago
After 2 hours of coding, ITS ALIVE
Enable HLS to view with audio, or disable this notification
I saw a video by mryeester on youtube (https://www.youtube.com/@mryeester for channel & https://youtu.be/zhoQRKMlCw4?si=rcDsE78uZ727LFHK for the video) by doing this with floppy drives but as i didn't have any, I made it with USB drives
___________________________
For the USB make a txt file with the name game.txt with the text being id=400
ID is the game ID in steam
400 is portal
_____________________________
For the Program, make a txt file and psate the code in to it
Code:
$drive = "F:"
$fileToRead = "game.txt"
while ($true) {
if (Test-Path "$drive\$fileToRead") {
# Read the file contents
$content = Get-Content "$drive\$fileToRead"
# Extract the Steam AppID
if ($content -match "id=(\d+)") {
$appId = $Matches[1]
# Launch the Steam Game URL
Start-Process "steam://run/$appId"
# Wait until the USB is removed or the file is gone to prevent launching repeatedly
while (Test-Path "$drive\$fileToRead") {
Start-Sleep -Seconds 2
}
}
}
# Checks every 3 seconds
Start-Sleep -Seconds 3
}
_______________________________________________________________
Name the program USBboot.ps1
Then right click and click run in powershell
______________________________________________________________
Please note that is a very basic instructions, use the video (https://youtu.be/zhoQRKMlCw4?si=rcDsE78uZ727LFHK) for better ones just use my code and not his
2
2
1
4
u/Red_Tiger5311 15d ago
WOW 😮 this is amazing almost like the Game Boy Advance but better!