Jump to content
LaunchBox Community Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

166 Excellent

About jayjay

  • Rank
    32-Bit GPU

Recent Profile Visitors

2,048 profile views
  1. Hey @The_Keeper86. Im currently working on moving this to .net core and improving on it a bit. It will take me some time though.
  2. I guess from your explanation the way this currently behaves is: LB/BB hides/changes the mouse on game start up. When you exit the first .exe the plugin + ahk combination changes the mouse back. Having the mouse show on pause screen would annoy me. Maybe if the mouse isnt to big you could use a move mouse command to hide the mouse in the corner of screen.... i dunno. Might be tricky trying to have 1 script catch all. Yeah your right. Sorry was being a bit thick. LaunchScript.zip This plugin you can have the following scripts: OnAppExit.ahk - will work for both LB/BB OnAppExitBB.ahk OnAppExitLB.ahk OnStartupCompleted.ahk - will work for both LB/BB OnStartupCompletedBB.ahk OnStartupCompletedLB.ahk OnAfterGameLaunched.ahk - will work for both LB/BB OnAfterGameLaunchedBB.ahk OnAfterGameLaunchedLB.ahk OnGameExit.ahk - will work for both LB/BB OnGameExitBB.ahk OnGameExitLB.ahk If you have say OnGameExit.ahk and you have OnGameExitBB.ahk in your Autohotkey directory, both scripts will launch when a game is exited. If you have say OnGameExitLB.ahk and you have OnGameExitBB.ahk in your Autohotkey directory, only 1 script will launch depending on if your using BB or LB. Maybe overkill for what your trying to achieve but figured others could use it for something different. If you do need to handle it differently for BB/LB, it would prob be better to do it in ahk: args = %1% Array := StrSplit(args , "|") platform := Array[1] gamePath := Array[2] emuPath := Array[3] isBigBox := Array[4] if (isBigBox == "true") { ;is bigbox } else { ;is launchbox } Can capture the above using the GameExit and AfterGameLaunch scripts. Anyway theres a few options, i'll leave it to you to come up with the best method.
  3. @Mr.Laor are you using a badge plugin created with my custom badge creator? Iv just tested a badge on my mame collection and although memory usage is similar to normal, seems the cpu goes a bit haywire. Edit: actually scratch that, only goes a bit crazy when loading a platform then settles again.
  4. The last plugin has "script not found" error message pop up when it doesnt find one of the scripts. Sorry about that use this one instead: LaunchScript.zip 1. Yeah the OnAppExit does fire when switching between LB and BB. 2. I think OnGameExit happens as soon as you exit the game. I dont think LB unhides the mouse until the game over screen disappears. @DrGrizzPHD posted a method for the steam/windows games, should work for all games, with the OnGameExit issue over here,: So if we nick that script and add the stuff you need it should look something like this: Sleep, 3000 ; Wait three seconds for the game to launch MouseMove, 1920, 500 ; move the mouse to the middle of the screen instead of the corner to prevent the title/start bar from appearing Sleep, 10000 ; wait 10 seconds for good measure to make sure the game is loaded and is the active window, this could probably be reduced WinGet, active_id, ID, A ; get the ID of the active window WinWaitClose, ahk_id %active_id% ; wait for the active window to close Sleep, 500 ; wait half a second, this might not be needed either if WinExist("LaunchBox Game Startup") { WinActivate WinWaitClose, LaunchBox Game Startup } if WinExist("LaunchBox") { ;maybe add another sleep here WinActivate Goto, ChangeItBack } if WinExist("LaunchBox Big Box") { ;maybe add another sleep here WinActivate Goto, ChangeItBack } return ChangeItBack: ;************* here RegRead, output, HKEY_CURRENT_USER\Control Panel\Cursors, ChangeCursorScheme("%output%") ChangeCursorScheme(Scheme){ KeyNames := ["Arrow", "Help", "AppStarting", "Wait", "Crosshair", "IBeam", "NWPen", "No", "SizeNS", "SizeWE", "SizeNWSE", "SizeNESW", "SizeAll", "UpArrow", "Hand"] KEYpath := "HKEY_CURRENT_USER\Control Panel\Cursors" RegRead, SchemeVals, HKEY_CURRENT_USER\Control Panel\Cursors\Schemes, %Scheme% if(!SchemeVals){ RegRead, SchemeVals, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes, %Scheme% } SchemeVals := StrSplit(SchemeVals, ",") if(SchemeVals.Length() > 0){ RegWrite, Reg_SZ, %KEYpath%, , %Scheme% } for index, val in SchemeVals { if(index < KeyNames.Length()){ RegWrite, Reg_Expand_SZ, %KEYpath%, % KeyNames[index], %val% } } DllCall("SystemParametersInfo", "UInt",0x0057, "UInt","0", "UInt",0, "UInt","0") } ExitApp ;*********************** and don't forget this Rename this script to OnGameExit.ahk and see if it works for all games.
  5. You gave 5 options haha. This plugin: LaunchScript.zip All it does is launch the .ahk using LB built in autohotkey so dont need to compile the ahk. Unblock the zip and extract the dll to Launchbox/Plugins. You need to place your script in Launchbox/Third Party/Autohotkey/. If you want the script to launch when BB/LB starts up rename your script to "OnStartupCompleted.ahk". If you want the script to launch on game exit rename your script to "OnGameExit.ahk". If you want the script to launch on BB/LB closing rename your script to "OnAppExit.ahk". If you want you can use all 3 at the same time. Also I keep forgetting, when using onGameExit... if you play a windows or steam etc game, where you launch an exe that passes on to another exe, on game exit wont work correctly. The game exit event fires when the first exe closes. Im not sure what effect it will have on your mouse. If you want to get a bit fancy (hacky?) with your game exit script you can capture the launching games platform, games application path and emulator path with the following: args = %1% Array := StrSplit(args , "|") platform := Array[1] gamePath := Array[2] emuPath := Array[3] Also if using one of the on exit options you might want the script to sleep for a few seconds until LB/BB unhides the mouse.
  6. If this issue only occurs when a game is launched you could use my regain focus plugin to launch the script on game exit. If it occurs without launching a game I nominate @JoeViking245 (haha) to copy my plugin but use the BigBoxIsClosing and LaunchBoxIsClosing event to launch the script on LB/BB closing.
  7. I have given this some thought but with my limited knowledge I cant come up with a decent method to achieve this. Writing to the xaml files either every 5 seconds or every button press isnt a good idea. Even if it was the view you would currently be sitting at wont change the image. You would need to use a usercontrol. My plugin that launches apps from the system view is a usercontrol. Using a plugin I dont think there is a way to tell which view you are on and as you want a different image for each view, every view would require its own usercontrol. To be able to press a button on 1 view and have the image change on another view will require static variables. To change this static variable automatically every 5 seconds would require a timer. From what I read changing static variables from a timer (different thread) isnt a good idea... I cant create images on another thread anyway so will have to invoke... invoking that amount of images every 5 seconds... maybe instead use a string/int to point to a different path and use the loaded event 🤪 I could do this but at the moment I wouldn't be confident that iv done it well. If anyone with more knowledge than me wants to chime in with a good method to achieve this then I'll give it a go. But creating a ui for this, im def not up for. When me and my gf are "getting busy", I now use "xaml" as my safe word. 🤣
  8. Hey @JaysArcade. I dont have even 1 theme created with the theme editor... Could I trouble you to pack up the platform xamls for that theme and if you have any more themes that you know were made with the editor and post them to us please.
  9. Im not sure how it will react in attract mode. I'd imagine that it will jump to the game view and the plugin wont have any impact on it. Could you test it and report back what happens. Using the api we can know when BB is in attract mode. If it does jump to game view... Could make a plugin that detects when it is inside "JukeBox" game view and have it jump back to platform view but you would prob get a nasty flash on the screen and also not sure how attract mode will react to it, might stop it. If I was using this plugin and attract mode does jump to game view what I would do is... Go to the themes views folder. Create folders for the game views Launchbox/Themes/My theme/Views/HorizontalWheel1GamesView/ and copy the corresponding xaml's there, rename the xaml to JukeBox.xaml. Modify the xaml, removing the wheel, Images pretty much everything that moves and have a background image or whatever so when attract mode is doing its thing it just displays an image for jukebox for x amount of time until it jumps back.
  10. Download this: LaunchPlatform.zip Unblock it. Move the "LaunchPlatform" folder to Launchbox Plugins. Step 1 Now go to Launchbox/Themes/The theme your using/Views. Find the "PlatformWheelFiltersView.xaml" your using and make a backup. Backup all platform xamls if you use all of them. Open the platform.xaml in notepad and add this line: xmlns:LPlat="clr-namespace:LaunchPlatform;assembly=LaunchPlatform" Near the top like so: Add the following line: <LPlat:LPControl /> Near the bottom, just above </Canvas> Like so: Save it. Step 2 Open Launchbox. Go to tools, manage platforms and add a platform. Name the Platform whatever you want. (Lets say Kodi) Add your app (Kodi) to this platform. Close LB so th data saves to file. Go to Launchbox/Data/Platforms and open the new platforms xml file (Kodi.xml) in notepad. Go to Launchbox/Plugins/LaunchPlatform and open PlatformApps.txt. Copy the platform name to the txt file. Add the character "|" (Bar) next to the platform name. Then find the ID and copy it over, like in the image above. Save the txt. Start BB and launch from the platform level. If you want to add more apps, follow from step 2 but add another platform name, Bar character and Id to a new line under the top line in the PlatformApps.txt. I havent tested this a great deal though.
  11. Am chiming back in to say: Iv just tested mashing the buttons going from "Options" to "SystemView". Using a plugin I can then block going to "Platform View" even when mashing the buttons. I havent tested the scenario above, maybe that works now as well. Also: I can use the "BigBoxStartupCompleted" event and the "ShowSystem" method to jump straight to "SystemView". BigBox is so cool. Im enjoying adding stuff to system view.
  12. This plugin requires some theme modification and is only compatible with SystemViews where the menu (back,options,manage themes,etc) is on the left side. How to install. Download this: SystemViewApps.zip Unblock it. Put SysMenu.dll in Launchbox/Plugins Go to Launchbox/Themes/"The theme your using"/Views/... and make a backup of SystemView.xaml. If you are familiar with modifying themes: Open your SystemView.xaml and add the following line: xmlns:sysM="clr-namespace:SysMenu;assembly=SysMenu" Near the top like so: And inside the grid add the following line <sysM:SysMenuControl Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="2" /> Change the Column, ColumnSpan, ZIndex as needed. If you are not familiar with modifying themes: You can download this default theme SystemView.xaml which will work with any theme: SystemView Xaml.zip Replace your themes SystemView.xaml, dont forget to backup your SystemView.xaml in case you want to revert back. The image at the top of this thread is the default SystemView. If you want to use your themes SystemView, go to Launchbox/Themes/Your theme/Views/. And post the SystemView.xaml on this thread and i'll modify it for you. How to add apps. Open Launchbox, go to tools, manage platforms... and add a new platform. Name this platform exactly "System Menu Apps". What ever apps you add to this platform will show up in the system view. Add a "Box Front" image to your apps. Square images look best. Set all apps that you add to the "System Menu Apps" platform to hidden so it doesnt display the platform in BB's platform wheel view.
  13. I attempted something like this. The idea was.. Add a platform called "Kodi". If a user selects kodi from the platform level, can use the plugin to launch kodi and also block the transition to the game level. It mostly works but I found that if I went from "systemview" (the view with options, manage themes, exit, etc) and you mash the buttons back to platform view and keep mashing the buttons, it would jump to game view with the plugin seemingly not loading quick enough to block the transition. I think if I ever get round to completing half the shite I start I'll use the unused space on systemview to launch things like kodi and spotify etc. Would be cool to get a "Start from Systemview" option in BB.
  14. Hey @silverchair Iv looked through my 68 psn games and added the following to the importer: string str = title; if (str.EndsWith(" - Trial Version")) { str = str.Substring(0, str.LastIndexOf(" - Trial Version")); } if (str.EndsWith(" Trial Version")) { str = str.Substring(0, str.LastIndexOf(" Trial Version")); } if (str.EndsWith(" - Trial")) { str = str.Substring(0, str.LastIndexOf(" - Trial")); } if (str.EndsWith(" Trial")) { str = str.Substring(0, str.LastIndexOf(" Trial")); } if (str.EndsWith(" Demo")) { str = str.Substring(0, str.LastIndexOf(" Demo")); } If the title ends with any of the examples above, it'll remove it from the end of the title. PS3GameImporter.zip Just replace the dll. Edit: Obviously if the game title actually ends with one of these words as part of its proper title, Trial maybe being the only one, it will be removed.
  15. Im guessing @TimberlAndRE is trying to make changes to the xml file outside of LB and then reload the files. I dont think RefreshData() will work. I havent really used the reload methods but if I remember correctly you want to be careful with it. I think if the user makes any changes to their collection without saving (closing LB), them changes will be lost when calling reload. Maybe you can call a save method before reload but im not expert, not sure if its wise to do it.
  • Create New...