Skip to content

Commit

Permalink
Updated to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayingKarrde committed Mar 31, 2021
1 parent f7b3ea3 commit b782e86
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
28 changes: 28 additions & 0 deletions LaunchPegasus.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
#SingleInstance Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

HideShowTaskbar(hide := hide)

HideShowTaskbar(action) {
static ABM_SETSTATE := 0xA, ABS_AUTOHIDE := 0x1, ABS_ALWAYSONTOP := 0x2
VarSetCapacity(APPBARDATA, size := 2*A_PtrSize + 2*4 + 16 + A_PtrSize, 0)
NumPut(size, APPBARDATA), NumPut(WinExist("ahk_class Shell_TrayWnd"), APPBARDATA, A_PtrSize)
NumPut(action ? ABS_AUTOHIDE : ABS_ALWAYSONTOP, APPBARDATA, size - A_PtrSize)
DllCall("Shell32\SHAppBarMessage", UInt, ABM_SETSTATE, Ptr, &APPBARDATA)
}
WA=%A_screenwidth%
HA=%A_screenheight%
MouseMove, WA, HA ,, R

Gui, Color, black

Gui -Caption

Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%

RunWait, pegasus-fe.exe
ExitApp

File renamed without changes.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@ This is a series of compiled scripts that make the Pegasus experience on Windows
- Optional Windows launcher to help with launching Steam games

## How to use
Download the latest zip from the releases page and unzip directly into your Pegasus config directory. It should look like config\scripts with all the files and directories needed already set up.
Download the latest zip from the releases page and unzip directly into your Pegasus directory. Run Pegasus with the LaunchPegasus.exe

## PegasusWindowsLauncher
PegasusWindowsLauncher.exe is primarily intended for those that wish to manage their Steam games via LaunchBox. Simply set up a new emulator in LaunchBox called Steam (or whatever you like), with the default launch paramaters as -s, and make sure to check "Use file name only without file extension" and set it to be the default emulator for Steam. Import your Steam games using LaunchBox's built in Steam import tool and set the Platform to Steam (enter it manually if you don't have one) but scrape as Windows.
## PegasusGamesLauncher
PegasusGamesLauncher.exe is primarily intended for those that wish to manage their Steam games via LaunchBox. This allows for the curation of Steam metadata and art/videos as well as allow Pegasus to track time played for Steam games.

Simply set up a new emulator in LaunchBox called Steam (or whatever you like), with the default launch paramaters as -s, and make sure to check "Use file name only without file extension" and set it to be the default emulator for Steam. Import your Steam games using LaunchBox's built in Steam import tool and set the Platform to Steam (enter it manually if you don't have one) but scrape as Windows.

![LaunchBox setup](https://i.imgur.com/qiRYihO.png)
![LaunchBox setup](https://i.imgur.com/wHjl9re.png)

## Caveats
With PegasusWindowsLauncher, it currently waits for 10 seconds before it is able to recognise the game. For this reason, if you exit the game quickly (ie before 10 seconds after launching), or if the game takes longer than 10 seconds to start (say, it has to install Steam redists or it has a launcher) it won't exit gracefully. This is being worked on and will hopefully be solved in future versions.
Currently the tool does not support Pegasus switches such as portable or kiosk modes. Portable mode can, however, be activated simply by placing an empty txt file called portable.txt in the same directory as Pegasus.

## Version history
v0.2
- Simplified experience so only one file is needed for the seamless experience
- Archived older scripts method
- Renamed PegasusWindowsLauncher.exe to PegasusGamesLauncher.exe to avoid confusion with the new LaunchPegasus.exe

v0.1
- Initial release
File renamed without changes.
1 change: 1 addition & 0 deletions BlackScreen.ahk → archive/BlackScreen.ahk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
#SingleInstance Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b782e86

Please sign in to comment.