Jump to content
LaunchBox Community Forums

boom38

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by boom38

  1. Yes, this is what I have working at this time. It looks like modifying the theme and get IBigBoxThemeElementPlugin to work may be more robust and offer me what I am after. The SharpDX way is a nice option too, I may try this if I find the IBigBoxThemeElementPlugin not what I want. Thank you for everything.
  2. Thanks! I looked at LED Blinky but afaik, it does not aim to also display marquees. And also DOFLinx does something new: add events when playing mame games. This allows to display score on another screen (Dot Matrix Display), picture or gif (on events). It also supports everything that direct output framework (DOF) supports. LEDs, solenoids, flash lights, fan blowers, … for the BigBoxElement interface, should I understand that I cannot use it outside of creating my own theme? Do I have other options? thanks for everything. I love bigBox.
  3. I am trying to create a DOFLinx plugin for BigBox. I aim to show LEDs animation, change marquee (game and platform) on DMDs, based on events from BigBox. To do that, I need to react to platform change, game selection change, and also Up/Down/Right/Left/Enter events (to display animations for those). I see 2 possibilities : - Use IBigBoxThemeElementPlugin interface - Use ISystemEventsPlugin interface ISystemEventsPlugin interface works : when I launch launchbox or bigbox, with the plugin in Launchbox/plugins folder, I can attach the debugger and add breakpoints in my methods and see what is happening. I can use OnEventRaised, then fetch current platform (GetSelectedPlatform()) and game (GetAllSelectedGames()). But I'm halfway where I want to be : I cannot react to up/down and other events. Unfortunately, I cannot seem to be able to implement IBigBoxThemeElementPlugin interface. I mean, when I attach the debugger and add breakpoints to OnSelectionChanged or OnUp/OnDown, I never reach the code. What am I doing wrong? Do I have to modify the theme also? Thanks! // Reference documentation : https://pluginapi.launchbox-app.com/html/4cf923f7-940c-5735-83de-04107a6ae0e6.htm namespace DOFConnect { using Unbroken.LaunchBox.Plugins; using Unbroken.LaunchBox.Plugins.Data; public abstract class BigBoxThemeElement : IBigBoxThemeElementPlugin { public void OnSelectionChanged(FilterType filterType, string filterValue, IPlatform platform, IPlatformCategory category, IPlaylist playlist, IGame game) { // This is never reached string gameName = game.Title; string platformName = platform.Name; string gamePlatform = game.Platform; } public bool OnDown(bool held) { // This is never reached bool isHeld = held; return isHeld; } public abstract bool OnEnter(); public abstract bool OnEscape(); public abstract bool OnLeft(bool held); public abstract bool OnPageDown(); public abstract bool OnPageUp(); public abstract bool OnRight(bool held); public abstract bool OnUp(bool held); } }
  4. Regarding the screen focus... I am running Visual Pinball X 10.7.2, and experienced the issue with screen focus. I do have a DMD, so maybe that is the root cause. I suspect dmdext starts together with VPX, and then VPX looses the focus. Anyhow, it seems I have fixed it for me by going to manage/emulators/Visual Pinball X, and add the following in "Running Script". This should make AHK wait for "Visual Pinball Player" window for up to 30s, and then activate that window. WinWait, Visual Pinball Player,,30 WinActivate, Visual Pinball Player At least, it seems to be working for me.
×
×
  • Create New...