Monorepo for Aesthetic.Computer aesthetic.computer
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 45 lines 1.3 kB view raw
1// 🌟 Setting up an auto-running games in Windows 2// (For the Auriea Harvey retrospective at MOMI) 3 4// 1. Disable Windows Game Overlay / Xbox Game Bar 5 - Found in Settings > Gaming 6 7// 2. Set up Powershell Shortcut via Windows + R then entering `shell:startup`. 8 9C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -ExecutionPolicy ByPass -File "C:\Users\Digital CPU\Desktop\script.ps1" 10 11// 3. Set up Powershell Script (script.ps1) 12 13$firstRun = $true; 14 15while ($true) { 16 $process = Get-Process "Sunset" -ErrorAction SilentlyContinue 17 if (-not $process) { 18 if ($firstRun) { 19 Start-Process "C:\Program Files (x86)\Sunset\Sunset.exe" 20 $firstRun = $false 21 } else { 22 Restart-computer 23 break 24 } 25 } 26 Start-Sleep -Seconds 1 27} 28 29// 4. Reboot to test! 30 31// 🌟 Specific Application Settings 32 33// 🌒 Bientot 34 35(Add `skip.ahk` to the Desktop after installing AutoHotkey) 36SetTitleMatchMode(2) 37if !WinWait("Bien", , 10) { 38 ExitApp 39} 40WinActivate("Bien") 41Sleep(250) 42Send("{Enter}") 43 44(add to the ps1 script above the other `Start-Process` line) 45Start-Process "C:\Program Files\AutoHotkey\v2\AutoHotkey.exe" -ArgumentList "`"C:\Users\Digital CPU\Desktop\skip.ahk`""