Jump to content
LaunchBox Community Forums

CLI Launcher - LaunchBox Command Line Interface for launching games directly from Stream Deck


Recommended Posts

3 hours ago, DemmyTree said:

Is it possible to get a batch mode so when you select all games you can export the shortcuts to a location with it creating a file for each game rather than select them individually?

@DemmyTree Sure, v7.0.2 now supports batch mode for creating windows shortcuts to launch games.

Link to comment
Share on other sites

  • 1 month later...

Version 8.0.0 of CLI Launcher is now available. I finally got around to installing my Stream Deck on my arcade, so I've been using the plugin myself and as a result I fixed a bunch of annoying issues:

- Console window no longer pops up briefly when running shortcuts.
- Fixed issue with preview video sound being audible after launching a game.
- When exiting a game we now navigate back to where you were when the command was received instead of landing on the game's details page. This prevents accumulating a large back history when launching multiple games from the stream deck.
- Improved how we detect when a game exits. Previously, game exit wouldn't always get detected which would lock us out from getting additional commands until the selection was changed.
- Updated instructions to not use AHK scripts for Stream Deck shortcuts. Scripts are unnecessary because you can just pass the required parameters to CLI_Launcher.exe when setting up the Stream Deck button.
 

@TapeWorm, @Vitaly17 I believe both of you switched to the "without_menu" version of the launch command because of a couple of the issues above. You should now be able to switch back to the regular launch command (so that Marquees and Blinky update more reliably).

Edited by superrob3000
  • Like 1
Link to comment
Share on other sites

love the updates rob, just a curiousity, is there a command to get back to the Platform View / Playlist view root menu's or lets say change to the game center view? i partly assume it may be a playlist style thing but im not certain what it would be

Link to comment
Share on other sites

2 minutes ago, DemmyTree said:

love the updates rob, just a curiousity, is there a command to get back to the Platform View / Playlist view root menu's or lets say change to the game center view? i partly assume it may be a playlist style thing but im not certain what it would be

Not currently. But I do plan on adding more commands soon, so I will add those if possible.

  • Like 1
Link to comment
Share on other sites

fair enough just to confirm, the update also has hidden the command prompt when running from macrodeck so thats lovely :D if only they had a batch program to compile buttons for stuff like streamdeck/macrodeck haha, thats always the downside

Link to comment
Share on other sites

Thanks @superrob3000, and your trick worked for stopping the video-playback in the background.

Your ears must have been burning because I had just created a somewhat related topic on the dev board yesterday around the preview videos playing in the background.

Link to comment
Share on other sites

6 minutes ago, TapeWorm said:

Thanks @superrob3000, and your trick worked for stopping the video-playback in the background.

Your ears must have been burning because I had just created a somewhat related topic on the dev board yesterday around the preview videos playing in the background.

Yeah I saw that. I had run into the same issue. Seems to be a bug where if you use the plugin API to first show a game and then use it to play the game before its preview video fully loads on the game details screen, then the preview video audio will play in-game. I was able to figure out a somewhat convoluted workaround though (launch the game first and only navigate to it once BigBox is no longer the active window).

Link to comment
Share on other sites

1 hour ago, Vitaly17 said:

Hi, I tried the 8.0.0 version. Marquee works, but ledblinky doesnt works.  My ahk script look like run G:\LaunchBox\ThirdParty\CLI_Launcher\CLI_Launcher.exe launch "arcade" "pac-man"

Hi @Vitaly17. If I recall correctly you had previously turned off Blinky in LaunchBox and were instead handling it via rocket launcher and bat file. Do you still have it off in LaunchBox?

Link to comment
Share on other sites

2 hours ago, superrob3000 said:

Hi @Vitaly17. If I recall correctly you had previously turned off Blinky in LaunchBox and were instead handling it via rocket launcher and bat file. Do you still have it off in LaunchBox?

Then I decided to include it in launchbox because I wanted the button animations to change when changing games in the bigbox menu. I just didn't use the launch_without_menu function.

Link to comment
Share on other sites

3 minutes ago, Vitaly17 said:

Then I decided to include it in launchbox because I wanted the button animations to change when changing games in the bigbox menu. I just didn't use the launch_without_menu function.

Ok, not sure why it wouldn't be working on your setup then. If you message me your log file (LaunchBox/Logs/CLILauncher.txt) I'll take a look at it.

Link to comment
Share on other sites

3 hours ago, superrob3000 said:

Ok, not sure why it wouldn't be working on your setup then. If you message me your log file (LaunchBox/Logs/CLILauncher.txt) I'll take a look at it. Ledblinky shows the control of the selected game in the menu and not running through the script

I deleted StreamDeckGameLauncher and tried to run pacman. Here's what appeared in the file StreamDeckGameLauncher

[21.10.2024 23:40:51] Listening for commands (Version 8.0.0)...
[21.10.2024 23:40:55] WinEventProc: launchbox/bigbox is new active window. Scheduling debounce delay...
[21.10.2024 23:40:55] WinEventProc: launchbox/bigbox is not the new active window: LaunchBox Big Box Startup Video
[21.10.2024 23:40:55] WinEventProc: launchbox/bigbox is new active window. Scheduling debounce delay...
[21.10.2024 23:40:55] WinEventProc: launchbox/bigbox is new active window. Scheduling debounce delay...
[21.10.2024 23:40:57] LBBB_IsNewActiveWindow_Debounce... in-game state cleanup was not necessary.
[21.10.2024 23:41:01] receive data: launch%arcade%pac-man
[21.10.2024 23:41:01] Scheduling back navigation on game exit.
[21.10.2024 23:41:01] OnBeforeGameLaunching... Updating in_game state to true.
[21.10.2024 23:41:03] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer2
[21.10.2024 23:41:03] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer2
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer3Static
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer3
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer4
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer6
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer6
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: fadeLayer7
[21.10.2024 23:41:04] WinEventProc: launchbox/bigbox is not the new active window: AutoHotkey.dll
[21.10.2024 23:41:05] WinEventProc: launchbox/bigbox is not the new active window: CoverFE
[21.10.2024 23:41:06] WinEventProc: launchbox/bigbox is not the new active window: Pac-Man (Midway) [pacman] - MAME 0.256 (LLP64)
[21.10.2024 23:41:16] WinEventProc: launchbox/bigbox is not the new active window: CoverFE
[21.10.2024 23:41:16] WinEventProc: launchbox/bigbox is new active window. Scheduling debounce delay...
[21.10.2024 23:41:17] Exiting game.
[21.10.2024 23:41:17] Forcing back navigation on game exit.
[21.10.2024 23:41:17] OnGameExited... Updating in_game state to false.
[21.10.2024 23:41:18] LBBB_IsNewActiveWindow_Debounce... in-game state cleanup was not necessary.
[21.10.2024 23:41:23] WinEventProc: launchbox/bigbox is not the new active window: 
[21.10.2024 23:41:25] WinEventProc: launchbox/bigbox is not the new active window: 
[21.10.2024 23:41:26] WinEventProc: launchbox/bigbox is not the new active window: Logs

 

 

Edited by Vitaly17
Link to comment
Share on other sites

got a suggestion for a command, something like a Timer, i dont know if could be applied but something like if you set Timer to 1H/30m/40s it will play the game, give 10 minute warning when its about to end and then quits when the timers up

Link to comment
Share on other sites

8 hours ago, DemmyTree said:

got a suggestion for a command, something like a Timer, i dont know if could be applied but something like if you set Timer to 1H/30m/40s it will play the game, give 10 minute warning when its about to end and then quits when the timers up

@DemmyTree Sure, no problem. Try out version 8.0.1:

- Added a new option "-t=num_minutes" that can be passed to the launch commands. The game will be launched and then automatically closed after the specified number of minutes. By default it will attempt to use the ESC key to exit the game, but for games where that won't work (e.g Windows games) then you can also pass "-altf4" to tell it to use Alt-F4 to exit instead.

- Added a new option "-all" that can be passed to the platform command instead of a specific platform. This will take you to the platform/playlist root menu.
 

There is no warning right now before exiting the game, but if you explain how you intend to use this timer feature it might help me decide how to implement it.

Link to comment
Share on other sites

i was thinking the thought of kids who say 'Five more minutes' or if only have a limited time of playing games could use this as a way to make sure your not going over by having a warning that time is almost up and then can prepare or try find a save position. granted this is more likely for arcade games due to repeat play but can be applied to others

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Ive recently just built a cabinet. I have everything installed and running a 3rd screen on the latest plugin.
I have the CLI plugin installed but im not seeing the Launcher icon in the drop down list 
Is there anything else I need to install or enable to get this running?

image.thumb.png.e359551fbcb729813f606ee4daecc450.png

Link to comment
Share on other sites

4 hours ago, wr_uk said:

Ive recently just built a cabinet. I have everything installed and running a 3rd screen on the latest plugin.
I have the CLI plugin installed but im not seeing the Launcher icon in the drop down list 
Is there anything else I need to install or enable to get this running?

image.thumb.png.e359551fbcb729813f606ee4daecc450.png

Did it create a log file (LaunchBox/Logs/StreamDeckGameLauncher.txt)? If so could you send it?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...