Jump to content
LaunchBox Community Forums

jayjay

Members
  • Content count

    173
  • Joined

  • Last visited

Community Reputation

49 Excellent

About jayjay

  • Rank
    32-Bit GPU

Recent Profile Visitors

825 profile views
  1. Wtf. How do i upload a file without starting a thread?
  2. jayjay

    PauseMenu

    Iv added some stuff to your script. The only bit Iv modified on your script is this: GUI, Add, Button, gCancel x100 y100 w100 h100, Cancel Gui, Add, Button, gSave x+100 y100 w100 h100, Save GUI, Add, Button, gLoad x+100 y100 w100 h100, Load GUI, Add, Button, gPower x+100 y100 w100 h100, Power Notice the x+100. This means x coordinate + 100 from the previous button. So if you first button is at x130, your next button will be plus 100, so x 230 and so on. Have a look at the config.ahk I made. Try it out. Basically the idea is to be able to move and resize the buttons easily and modify the script to include the new coordinates etc. So others who have a different size screen can use the config.ahk to place the buttons in the correct locations. Once the buttons are in the correct location, if they would be kind enough to post to you the info that is inside the Display.txt file, you could soon have the correct coordinates for different size screens. I will try to explain better when I have more time but give it a go. Any questions ask.
  3. bbweiners PauseMenu View File bbweiners PauseMenu Submitter jayjay Submitted 07/21/2018 Category Third-party Apps and Plugins  
  4. Version 1.0.0

    3 downloads

    bbweiners PauseMenu
  5. jayjay

    Additional Apps timing issues

    To be honest im stumped with this one, its beyond my skill level. I think the issue is with this line: Run, mame64.exe "%1%" "%2%" "%3%" Sorry I cant be more help but im struggling with this one.
  6. jayjay

    PauseMenu

    I dont mind helping out when I can but my time is very limited, im not sure how much use I can be... I would also suggest as you do this, choose a different emulator than retroarch to progress on. Retroarch's menu is just to good for others to use and test this and maybe join in. Also if anyone uses xpadder or joytokey etc, this potentially is going to clash with it. Im not sure how you could get around this. Anyway test this: FileSelectFile, file, 2, %A_ScriptDir%, Select a media file: if Errorlevel ExitApp Gui Wmp: +LastFound Gui Wmp: Add, ActiveX, w250 h250 vWmp, WMPLayer.OCX Wmp.Url := file Gui Wmp: Show, w600 h500 x50 y50, Wmp in GUI return Choose a video file. There are other settings, like repeat, remove play, volume buttons etc The challenge with this is being able to match the game being played with the video file within LB directory. But maybe something to look at in the future.
  7. jayjay

    Additional Apps timing issues

    Ok couple of things. Can you post screen shot of the error. Can you post a screen shot of your mame directory, make sure that mame launcher.exe and mame launcher.ahk is in the screen shot. And also go to your mame launcher.ahk file that you have placed inside your mame directory, double click on it. What happens? does it open notepad or do you get 5 empty message boxes?
  8. jayjay

    PauseMenu

    Hope you dont mind me giving you some suggestions. Im not trying to hijack your work by any means. Your more than welcome to tell me to F off. But I thought I would give you some food for thought as I like what your doing. If u havent already, download scite4autohotkey. Its a cool environment for ahk development. I was told by the smart guys over at the ahk forums that when creating multiple gui's, create them within the auto execute section of your script. The auto execute section of a script is the code that runs when your script is launched so as a rough example something like the following: #SingleInstance Force Gui, 1: Font, s40, Zrnic Rg Gui, 1: Add, Button, gCancel x248 y638 w200 h50, Cancel Gui, 1: Show Gui, 2: Font, s40, Zrnic Rg Gui, 2: Add, Button, gSave x248 y638 w200 h50, Save Gui, 3: Font, s40, Zrnic Rg Gui, 3: Add, Button, gLoad x248 y638 w200 h50, Load Return ;end of auto execute section Joy1:: Gui, 2: Show return Joy2:: Gui, 2: Close return Joy3:: Gui, 3: Show return This way everything is loaded and ready to go on start up. A couple of suggestions on how to make it easy to use for others. In your script you use this: Gui, Add, Picture, AltSubmit, C:\Launchbox\PauseMenu\PauseMenuButtons.png If you use %A_ScriptDir% at the beginning of a path, it will start the path from wherever the script is located. So if you change the above to: Gui, Add, Picture, AltSubmit, %A_ScriptDir%\PauseMenuButtons.png It will give the same result but now you can move your PauseMenu folder to any directory you want. Will your script work without autohotkey installed? If not how about trying this: Add this to your launchbox retroarch emulator ahk tab Path = %A_ScriptDir% AHKpath := StrReplace(Path, "Metadata\Temp", "AutoHotkey\AutoHotkey.exe") PauseMenuPath := StrReplace(Path, "Metadata\Temp", "PauseMenu\PauseMenuButtonsRetroArch.ahk") Run %AHKpath% %PauseMenuPath% To see what this script is doing test it with this one: Path = %A_ScriptDir% msgbox %Path% AHKpath := StrReplace(Path, "Metadata\Temp", "AutoHotkey\AutoHotkey.exe") msgbox %AHKpath% PauseMenuPath := StrReplace(Path, "Metadata\Temp", "PauseMenu\PauseMenuButtonsRetroArch.ahk") msgbox %PauseMenuPath% Run %AHKpath% %PauseMenuPath% Copy this script to your retroarch ahk tab in launchbox. You will have to test it properly. But should work. Using this above will also mean you can run your PauseMenu without having to have launchbox installed at C:/ Using these 2 methods above should essentially mean you can extract your pause menu straight to a Launchbox directory that is stored anywhere on a computer and have it work. When I start your menu the background is to large for my screen. If you change this: Gui,Show,w1920 h1080 y0 x0 to this Gui,Show,w%A_ScreenWidth% h%A_ScreenHeight% y0 x0 and maybe also change your gui, add, picture Gui, Add, Picture, w%A_ScreenWidth% h%A_ScreenHeight% It should resize the background to the size of whatever screen it is on. Hows your Maths? Using %A_ScreenWidth% and %A_ScreenHeight% it is possible for you to work out where the buttons x and y coordinates should be on any screen. I struggle with it so good luck lol. Anyway... food for thought? or overwhelming or just bllx. lol. If any questions just ask.
  9. jayjay

    PauseMenu

    Thats cool @bbweiners. I only briefly looked at your script, much cleaner than my usual jumbled up mess. AHK usually leaves tray icons behind maybe you could use #NoTrayIcons or look for a script called notrayorphans that you can run on exit. How about looking into gdip or something similar, I only briefly looked at gdip, but im sure its capable of taking a screenshot and saving them. How about taking a screenshot when the menu is activated and displaying it in your pause menu. Then with the screenshots expand on the saves, like backing up saves and deleting them. I was working on something similar but life gets in the way. But I like what you've done so far. Thanks.
  10. jayjay

    Additional Apps timing issues

    Yeah mame is no doubt different from retroarch. I will play with mame when I get a chance but might not be til the weekend, I work long hours. Change Mame Launcher.exe to run as admin. Prob wont do anything but worth getting that option out of the way. Just out of curiosity try replacing the Mame Launcher.ahk with this and reply with what is in the message boxes. msgbox %1% msgbox %2% msgbox %3% msgbox %4% msgbox %5%
  11. jayjay

    Additional Apps timing issues

    No worries @Retro808, anytime. Best way to learn this shit is with examples for something you enjoy doing... Anyway take it easy buddy.
  12. jayjay

    Additional Apps timing issues

    Ok so its similar to the method above. Copy Autohotkey.exe to the same directory as MK10.exe. Rename it to anything you want. Lets say... MK10 Launcher.exe. Create a txt file in the same directory and rename it to... MK10 Launcher.ahk. Right click on MK10 Launcher.ahk, edit or open with notepad. Copy and paste the following: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance, Force #Persistent Run path-to-XArcade XInput.exe Sleep, 5000 Run, MK10.exe Sleep, 1000 SetTimer, ProcessCheckTimer, 2000 Return ProcessCheckTimer: Process, Exist, MK10.exe pid1 := ErrorLevel If (!pid1) { Process, Close, XArcade XInput.exe ExitApp } Return So in the script you have the 1st run command, where you will have to add the path to XArcade XInput.exe. Next you have sleep 5 seconds. You may need to change the length of time depending on how long XArcade takes to open. Then it runs MK10.exe. Then another sleep command, which you may also need to change, basically you want mk10.exe to open before the script moves on to the set timer command. The timer checks every 2 seconds for the process MK10.exe, when it doesn't find it (when you exit MK10) it then closes XAracde XInput.exe. File, Save. In Launchbox find Mortal Kombat, right click, edit. Launcher tab, change the path to MK10 Launcher.exe. Dont forget to remove the additional app from Mortal Kombat otherwise it will try opening XArcade twice. Let me know how it goes.
  13. jayjay

    Additional Apps timing issues

    Yeah would be useful. I guess it would fall under the "expand additional apps" on the poll, we maybe waiting a while as its low on the poll. Something like... delay main executable for a "user defined" amount of seconds would be good. @Retro808 you can use the ahk method above for windows games etc without having to add it as emulators in launchbox, you would instead point the launchbox game launcher tab to the script. Which would then run the additional app, wait X amount of seconds then run the game. If u need a method reply with the games .exe and the additional apps .exe, if not just ignore me... or what might be better is if we create a load of fake accounts and vote "expand additional apps" up the poll lol.
  14. jayjay

    Additional Apps timing issues

    Somewhere on this forum there is a solution to the dolpin bar, gamepad and retroarch issue. I read it somewhere some time ago. Maybe have a search. May be a bit of a ball ache and they may be better ways of doing this... anyway. Can try using autohotkey. Go to your launchbox autohotkey directory. C:/Users/blah blah/Launchbox/Autohotkey. Copy and paste (dont move) Autohotkey.exe to your mame directory. Rename the new Autohotkey.exe to lets say... "mame Launcher.exe" Create a .txt file in the same directory. Rename it to "mame launcher.ahk". (the .exe and .ahk need to have the same name) Right click on "mame launcher.ahk", click edit or open with notepad. Copy and paste the following: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance, Force #Persistent Sleep, 5000 Run, retroarch.exe "%1%" "%2%" "%3%" Sleep, 1000 SetTimer, ProcessCheckTimer, 2000 Return ProcessCheckTimer: Process, Exist, retroarch.exe pid1 := ErrorLevel If (!pid1) { Process, Close, touchmote.exe ExitApp } Return Iv used retroarch here, dont ask me why lol. I dont have mame. You will have to change some things in this script: Sleep, 5000... Basically wait 5 seconds. Change if needed. 1000 = 1 second, 2000 = 2 seconds and so on. Run, retroarch.exe "%1%" "%2%" "%3%"... Change retroarch.exe to mames .exe. Process, Exist, retroarch.exe... Change retroarch.exe to mames .exe. Process, Close, touchmote.exe... I dont know touchmotes .exe so make sure that is correct as well. File, save. In launchbox. Go to tools, manage emulators. Add. Give it whatever name you want. Application path, browse to "mame launcher.exe" All the other settings like command line parameters etc, need to match your mame emulator settings. Except dont tick the default emulator box. OK Find a game (or you can bulk edit, maybe test it with one game for now) you want to use touchmote with. "operation wolf" for example. Right click and edit. Emulation tab. Under the "Choose emulator" option, choose your newly added emulator. Then give it a try. You could also have the script run touchmote instead of having to add it as an additional app to multiple games, like so: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance, Force #Persistent Run path-to-touchmote Sleep, 5000 Run, retroarch.exe "%1%" "%2%" "%3%" Sleep, 1000 SetTimer, ProcessCheckTimer, 2000 Return ProcessCheckTimer: Process, Exist, retroarch.exe pid1 := ErrorLevel If (!pid1) { Process, Close, touchmote.exe ExitApp } Return Change "path-to-touchmote". Anyway good luck.
  15. jayjay

    Auto Hotkey Scripts

    Can try this: SetTitleMatchMode, 2 WinWaitActive, XM6 Sleep, 1000 Send {Alt down}{Enter down}{Alt up}{Enter up} WinWaitActive means wait for a window to become active. The XM6 is the window title. Have a look at the window title for xm6g.exe, if it contains XM6 you should be good, if not replace XM6 with a word that is within the window title bar, it is case sensitive. Sleep, 1000 means wait 1 second before sending the keystrokes. You may need to increase this depending how quick xm6g.exe window appears. 2000 is 2 seconds, 3000 is 3 seconds and so on. We can try: Choose a directory you want to save the scripts to. Go to your launchbox installation files... C:/Users/your username/Launchbox/Autohotkey, or wherever you have it installed. COPY (dont move, copy and paste) Autohotkey.exe to your chosen directory. Rename the new Autohotkey.exe to whatever you want, for this example, i'll call it "my script.exe". Create a txt file in the same directory as "my script.exe". Rename the txt file to "my script.ahk". Both the .exe and .ahk need to be named the same. Right click on "my script.ahk", click edit. Copy and paste the following: #SingleInstance force SetTitleMatchMode, 2 WinWaitActive, NullDC Sleep, 5000 ;wait 5 seconds before rotation Send {ctrl down}{alt down}{up down}{ctrl up}{alt up}{up up} Return $Esc:: { WinGetActiveTitle, WindowTitle WinGet, PName, ProcessName, %WindowTitle% Send {ctrl down}{alt down}{right down}{ctrl up}{alt up}{right up} Process, Close, %PName% Exitapp } Note: Instead of a loop, like the previous scripts, we can use winwaitactive, it gives us the same result and is prob better than having a loop. In this script change NullDC to a word within the games window title bar and change the sleep 5000 if needs be. Click File, Save. In Launchbox, find the game you want to rotate. Right click on it, edit. Go to the "additional apps" tab. Click "add application" Give it any name. Click "browse" and find "my script.exe" Check the "run before main application" box. Click OK See how that goes.
×