Jump to content
LaunchBox Community Forums

jayjay

Members
  • Posts

    385
  • Joined

  • Last visited

Everything posted by jayjay

  1. Hey @Thornback You could try this plugin/script for your focus issue. Its not very elegant but works well for me. Download this: focus.zip Right click .zip, properties, unblock. Place the .dll in Launchbox/Plugins Place the .ahk in Launchbox/Autohotkey It "should" work with startup screens enabled or disabled. The .dll just runs the .ahk on game exit. the .ahk just activates 1st the start up screen window after that it activates either BB or LB window.
  2. You need a way to know how many emulator instances are wanted before you hit the run emulator commands. this WinGet, OutputVar, List , VisualBoyAdvance Gets the amount of visualboy windows that are open. this: Loop %OutputVar% loops through the windows. the winCount variable is just to separate each window to apply the coordinates. at the moment it doesnt have any effect on the amount of windows the user wants. If you just want 2 players then you can delete 2 run commands and 2 of the if statements in the loop and set up a new emulator in LB. Or you could start the script off with a gui and have the players press buttons to register the amount of emulator instances wanted. This is to much work for me to go over.
  3. I'll explain like im talking to someone who doesnt know what they are doing, I mean no offence. Im just a bit crap at explaining things. You need ahk installed to your pc. Copy this into a txt file: SetTitleMatchMode, 2 run, %A_ScriptDir%\VisualBoy.exe %1% ;change visualboy.exe to whatever the exe is run, %A_ScriptDir%\VisualBoy.exe %1% run, %A_ScriptDir%\VisualBoy.exe %1% run, %A_ScriptDir%\VisualBoy.exe %1% sleep, 3000 ;wait for all windows to open, longer sleep? winCount = 0 height := (A_ScreenHeight/2) width := (A_ScreenWidth/2) WinGet, OutputVar, List , RetroArch ;Visual Boy Or Whatever Loop %OutputVar% { Id:=OutputVar%A_Index% WinGetTitle, title, % "ahk_id " Id If (winCount == 3) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , %width%, %height% , %width%, %height% winCount++ } If (winCount == 2) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , %width%, 0 , %width%, %height% winCount++ } If (winCount == 1) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , 0, %height% , %width%, %height% winCount++ } If (winCount == 0) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , 0, 0 , %width%, %height% winCount++ } } Save it and rename the file to VB.ahk or whatever, just make sure to change extension to ahk. Move the file to the same directory as visualboy.exe With ahk installed you can right click on VB.ahk and compile to create VB.exe In LB set up a new emulator, set it up as if it was visual boy but give it a name that explains what it is. and point the application path to the new VB.exe. Right click on a game, launch with, your new VB.exe emulator. You might have to disable the start up screen for the new emulator.
  4. Yeah I only coded it with 4 players in mind, would need a way to tell how many players are playing or how many windows are open and adjust accordingly. If I ever finish my current plugin this is something i'll prob pursue if no one else does. I have a few ideas. Like being able to select and launch multiple games in BB or realigning the windows when a player drops out. Dont know how well it would work though. AHK and window commands can be a pain.
  5. This is as far as I got, I cant spend any more time on this. Compile the script and set it up as an emulator in LB, name it 4 player retroarch or something, you'll still need to add the code to hide taskbar. SetTitleMatchMode, 2 run, path to emulator %1% run, path to emulator %1% run, path to emulator %1% run, path to emulator %1% sleep, 3000 ;wait for all windows to open, longer sleep? winCount = 0 height := (A_ScreenHeight/2) width := (A_ScreenWidth/2) WinGet, OutputVar, List , RetroArch ;replace retroarch with a word in the title window Loop %OutputVar% { Id:=OutputVar%A_Index% WinGetTitle, title, % "ahk_id " Id If (winCount == 3) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , %width%, %height% , %width%, %height% winCount++ } If (winCount == 2) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , %width%, 0 , %width%, %height% winCount++ } If (winCount == 1) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , 0, %height% , %width%, %height% winCount++ } If (winCount == 0) { WinActivate, % "ahk_id " Id WinSet, Style, -0xC00000, %title% WinSet, Style, -0x40000, %title% WinMove, % "ahk_id " Id, , 0, 0 , %width%, %height% winCount++ } } If you wanted to get creative, you could have a screen pop up saying something like "each player press start" with a count down timer. Then split the screen depending on how many people press start. Would be cool.
  6. Dude this would make a sweet game menu item plugin, launch multiple versions of an emulator so more than 1 person can play a game at a time. Iv just found out by googling after iv read your post that ppsspp can play multiplayer adhoc games on the same pc. Could create a game menu plugin that launches 2 instances of ppsspp, if there is only 1 screen, split the screen. If 2 screens, 1 screen each instance of ppsspp. Controllers can be mapped per instance. Basically lan on the same pc. Would be a cool addition. I only came here to comment on how cool this would be, Im working on other stuff and dont have the time to pursue something like this. So yeah this is just a shit post, sorry about that. ha.
  7. Hey @The_Keeper86. I haven't forgotten about this plugin. As it turns out, the issue with this plugin is a BB issue. That issue isn't fixed yet. I can use the same method to fix this plugin as we did with the mame hi scores. But it requires me to rewrite it. And also when writing the ps3 importer plugin @klepp0906 let me know that the hdd0 folder can be moved to a different directory as well so will have to adjust for that. It will be a while til I get to it though as short on time and want to get the hi score plugin complete.
  8. try this: if WinExist("LaunchBox Game Startup") { WinActivate WinWaitClose, LaunchBox Game Startup } if WinExist("LaunchBox") { WinActivate } if WinExist("LaunchBox Big Box") { WinActivate } ExitApp
  9. If you start up demul outside launchbox does escape exit demul? Go to Launchbox/autohotkey directory, right click on autohotkey.exe, compatibility, run as admin. Change ur running autohotkey script to Joy7:: { WinGetActiveTitle, WindowTitle WinGet, PName, ProcessName, %WindowTitle% Process, Close, %PName% } Start a game in LB, press button 7 (select on 360 controller) If you have multiple controllers, press button 7 on all controllers Does demul close? If not, is demul in full screen, if yes and it has the option of windowed mode. Set it to windowed mode and try again. If not, not sure there's much else u can do.
  10. Iv just tested it and I dunno about you but when I dont change the window focus during the game, on game exit theres a nasty flicker. If thats true for you try this one instead: if !WinActive("LaunchBox Game Startup") { if WinExist("LaunchBox") { WinActivate WinActivate, LaunchBox Game Startup ExitApp } if WinExist("LaunchBox Big Box") { WinActivate WinActivate, LaunchBox Game Startup ExitApp } }
  11. Replace everything in the regainfocus.ahk with this: if WinExist("LaunchBox") { WinActivate WinActivate, LaunchBox Game Startup } if WinExist("LaunchBox Big Box") { WinActivate WinActivate, LaunchBox Game Startup }
  12. I'm not near my pc at the moment so can't be to much help. I can't think of a way to make this work without the dll. The WinGetActiveTitle commands above, yeah replace what ever is in the regainfocus.ahk with them 2 lines. Actually put a sleep command in there... WinGetActiveTitle, title Sleep 5000 Msgbox %title% Start a game in BB. Quit the game. Note if the shutdown screen works correctly. On game exit a message box will pop up telling u what window has the focus. If the shutdown screen works correctly then supposedly it should pop up a message box that says launchbox bigbox or something like that. If the shutdown screen doesn't work correctly then a message box should pop up with the name of a different window. This is all assuming that u using Google whilst gaming is actually the issue but testing with WinGetActiveTitle and msgbox commands should at least tell u, that is the issue.
  13. Hey @klepp0906. I'd imagine there would be reasons why it uses window focus other than tracking the process. For instance some games will load one .exe and pass on to another .exe. If BB were to track the .exe in this case you would see the loading screen then immediately see the shutdown screen. Some .exe may hang in the background when closed... etc etc. Also when coding something like this I know for me it wouldn't cross my mind that someone could be jumping from screen to screen, messing up the window order. Even though I have 2 screens it'd be something I'd forget. Having it as window focus is prob the lesser of 2 evils. I could be wrong but i would imagine ur issue could be using Google whilst gaming. When clicking on Google on ur second screen u move Google's screen up above BB in the window order. So when u exit the game google has focus and not BB. U could test this by replacing the ahk script with one that message boxes the active window title. WinGetActiveTitle, title Msgbox %title% In this case u could try winActivate / force winActivate etc commands in the script. But not sure how successful it'll be.
  14. Hey @cemfundog. At the moment you couldn't add it as a pause screen menu item but it is possible to add it as a custom user control. I'm not sure when mame updates it's hi-scores though. If it updates on game exit, then any hi-scores on the pause menu couldn't be updated til you quit the game and restart it. If you know how to compile code. I'm sure as @JoeViking245 is a cool dude he wouldn't mind PMing you the source so you can modify it to how ever you like.
  15. Nice one @ed20910 thanks for letting us know. And yeah it a bummer about updating themes. We'll been trying to add the hi-scores to the custom fields at some point. At least then wouldn't have to modify the xaml's.
  16. This plugin will work with the base unified refried. But to make it work with all the addons is going to be a chore to say the least. Inside unified refried "Views" folder, there is another folder named "TextGamesView", inside this folder is 600 xaml files. To make this plugin work with the unified refried addons all these xaml files will need to be modified using @JoeViking245 instructions. Obviously that's not viable. Any other themes that include this "TextGamesView" folder. Will have the same issue. When I get some time I'll try and look into it but off the top of my head Im not sure what we could do about this. At the moment the best option is to undo the changes made to unified refried Textgamesview.xaml. You won't be able to see the hi-scores menu item when using unified refried but better not seeing it then seeing it and not being able to use it.
  17. jayjay

    Wii Discs

    Wii Discs View File Some wii disc images. 160x160 Submitter jayjay Submitted 11/10/2019 Category Game Cart Images  
  18. Version 1.0.0

    135 downloads

    Some wii disc images. 160x160
  19. Hey @cemfundog thank you for these.They look much better than the rubbish I put together. Could I hassle you for a few more that will complete my collection please. They are... Typer Shark. Word Harmony.
  20. Welcome @CBeatt13. Just to let u know jason has already sent me a big list of things he wants u to do first. I'll PM u the list haha. Anyway on a more serious note. Would seem jason is on his way to becoming a faceless organisation. I think a re-branding is in order. I vote "Ubi-broken software". Anyway on a proper serious note. Does that mean, with @CBeatt13 on board. Those of us with plugin issues, can we bug u for a fix now instead of Jason?
  21. @Jason Carr The only way I have found to show new imported games is to change to another platform and back again. And the only way I have found to show a new platform is to change from the platform view to say platform category view and back again. After using AddNewGame() or AddNewPlatform() is there a method to refresh LB to automatically show the new games and platforms?
  22. Isn't the way the exit screen works is when bb regains focus it triggers the exit screen or something like that. So if loading a script there isn't a window to take the focus? Maybe try build a gui into ur script and keep it open behind the emulator and close it when emulator exits. Not sure how well it will work. Might get some nasty flicker. Maybe try and build a loading and exit screen into the script instead of using bb screens. Or Maybe the exit screen works on process so have the script continuously run in the background until emulator exits.
  23. Yeah 1 imported game is still required. I might change it next weekend depending on how much spare time I have. Importing 1 game and changing the emulator only takes a second so Iv only focused on the stuff that would take hours of manual work.
  24. OP updated. @klepp0906 the param.sfo class works on vita games. I dont have enough time to code anything now so will give it a proper look next weekend.
×
×
  • Create New...