Jump to content
LaunchBox Community Forums

jayjay

Members
  • Posts

    385
  • Joined

  • Last visited

Everything posted by jayjay

  1. 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%
  2. No worries @Retro808, anytime. Best way to learn this shit is with examples for something you enjoy doing... Anyway take it easy buddy.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. hmm. strange. Somethings up on my end then. Edit I found the problem My resolution isnt right Zooming out in chrome fixed it. lol. Sorry for wasting your time guys.
  8. Hi @Lordmonkus hope your good. Yeah but... For instance if you go here: https://forums.launchbox-app.com/topic/39811-auto-hotkey-scripts/?page=5&tab=comments#comment-288546 and read my post at the top of the page your notice that I have 1 script in a code block. At the bottom of the same post I have another script that is not inside a code block. I EDITED my post to include the second script but when editing a post there is no code tags. So what I am trying to say is... If you edit your post above and try to add a second code block underneath the one you have already added, you cant because there is no code tags when editing the post. Hope im making sense.
  9. Could we get code tags when editing posts please or if anyone knows how to manually add them please let me know.
  10. If im understanding you properly its the first rotation that is the problem at the moment and maybe because the rotation happens to quickly. It might not be because it happens to quickly but hopefully it is. #SingleInstance force SetTitleMatchMode, 2 Loop IfWinActive, nullDC { Send {ctrl down}{alt down}{up down}{ctrl up}{alt up}{up up} Break } Return $Esc:: { Send {ctrl down}{alt down}{right down}{ctrl up}{alt up}{right up} Process, Close, {{{StartupEXE}}} } The idea with this is: We have a loop that will keep looping until it finds a window which contains the word nullDC (is case sensitive) anywhere in the title bar. When a window which contains nullDC becomes active it then sends the keystrokes. See how that goes. Edit: To check if its not a issue with the timing of the rotation, try the following if the above script doesn't work correctly. #SingleInstance force SetTitleMatchMode, 2 Loop IfWinActive, nullDC { Sleep, 5000 ;wait 5 seconds before rotation Send {ctrl down}{alt down}{up down}{ctrl up}{alt up}{up up} Break } Return $Esc:: { Send {ctrl down}{alt down}{right down}{ctrl up}{alt up}{right up} Process, Close, {{{StartupEXE}}} }
  11. Might need more information. What emulator are you using. Is it for every game on the emulator or just specific games. Im assuming its every game on the emulator. When using the emulator on its own (not through launchbox) does esc exit the emulator. Im assuming it does. Do you have irotate run on computer start up or only when you start a emulator or ???. Im assuming start up., Just to note... When using ahk through LB... when you close the emulator LB kills the ahk script. So any commands after emulator exit are not executed. So the script you posted above is unlikely to work correctly. Its a race condition. With my assumptions you could try the following: Go to directory Launchbox\Metadata\Temp, Create a txt file. Rename the txt file to Rotate.ahk (or whatever you want but the file extension needs to be .ahk. Right click on Rotate.ahk. EDIT. Copy and paste the following: #SingleInstance force Send {ctrl down}{alt down}{up down}{ctrl up}{alt up}{up up} return esc:: { Send {ctrl down}{alt down}{right down}{ctrl up}{alt up}{right up} Exitapp } Save it. In Launchbox go to the emulator autohotkey script tab. Copy and paste the following: SetWorkingDir %A_ScriptDir% run, Autohotkey.exe "Rotate.ahk" This might not work as you want just yet. It might rotate the screen to quickly or maybe not at all. If it doesn't work correctly reply with whats happening and the more info. Edit... Actually... duh... what might work... if esc doesn't close the emulator on its own you could use the script you posted, slightly changed, add it to LB emulator ahk script tab. I dont know the short hand for sending keystrokes so change it if you feel the need: Send {ctrl down}{alt down}{up down}{ctrl up}{alt up}{up up} $Esc:: { Send {ctrl down}{alt down}{right down}{ctrl up}{alt up}{right up} Process, Close, {{{StartupEXE}}} }
  12. I have 17 systems, about 10,000 games. The media I have for all of them are box front, fanart background and video clip. Takes about 50gb... ish.
  13. @elements604 do u load touchmote with specific games or with a whole platform? Also can u tell me the exact window title for your mame include upper case letters etc. @Traffik what are u using the script on? An emulator or windows games etc? Would be easier to give u an example if i knew what .exe ur using. Retroarch.exe or etc etc And also can u post ur script up. Cant guarentee i'll get back to either of u quickly but will when i get the time... unless someone else wants to chime in.
  14. Shutdown, Sleep, Reboot, Logout while locked. View File Shutdown, Sleep, Reboot, Logout while locked in Bigbox system menu. When unlocked you will have 2 of everything. Submitter jayjay Submitted 05/28/2018 Category Third-party Apps and Plugins  
  15. Version 1.0.0

    49 downloads

    Shutdown, Sleep, Reboot, Logout while locked in Bigbox system menu. When unlocked you will have 2 of everything.
  16. lol. @JamesBond@ge. There are plenty of others here that are better than me, even some of the mods are. But I suspect they don't want the hassle when things don't work. Which is fair enough. @TechTonic. Open RPCS3, go to configuration settings. Open "emulator" tab and select "Exit RPCS3 when process finishes". Although the "universal close emu ahk" works fine for me with it selected or not.
  17. There might be a way with a timer and a loop or something. Im not sure. You could try this though: Joy5:: if GetKeyState("Joy6") if GetKeyState("Joy7") if GetKeyState("Joy8") Goto, close Return Joy6:: if GetKeyState("Joy5") if GetKeyState("Joy7") if GetKeyState("Joy8") Goto, close Return Joy7:: if GetKeyState("Joy5") if GetKeyState("Joy6") if GetKeyState("Joy8") Goto, close Return Joy8:: if GetKeyState("Joy5") if GetKeyState("Joy6") if GetKeyState("Joy7") Goto, close Return close: { keywait, joy8, t2 if errorlevel <> 0 { Process, Close, {{{StartupEXE}}} } } I copy and pasted this from a couple of other scripts on this site. Basically you would have to press back, start, l1 and r1. And then hold down start for 2 seconds to exit. I know its not holding all 4 buttons but unless someone else would be kind enough to come up with something, its better than nothing right? Sorry I don't really have the time to look into it.
  18. I doubt i'll be able to help as your setup is nothing like mine, i have no idea what ds4windows is but anyway will try... What is your seperate ahk script? Post your code up. If u have a batch file to launch the game, launchbox might think that the batch file is the game. When the batch file exits, launchbox thinks the game is over and any ahk script in the emulator tab will exit. To test this you can add some code to the cemu ahk tab. Start a cemu game. Go to task manager with the game still running and see if there is a ahk script running under launchbox... although i could be wrong about this. Have you tried running ahk as admin.
  19. Is there a way to get emulator paths? Preferably this selected.Game uses this emulator path. EDIT. Nevermind. I'll check the EmulatorId against the xml.
  20. Yeah was a joke. You (not you personally) wouldn't be paying much attention if you thought the mods around here are unhelpful. They always active... and thanks, I enjoyed the drink last night, not so much now. I think the word you are looking for is "elegant". Yeah, they now have a trophy manager. To answer my own "elegant" post... Although the guys at rpcs3 have made leaps and bounds recently there is still a long way to go. It would prob be better to ask them for a better way to integrate trophies into LB then messing with hex stuff. If its even possible to do it that way. But would def be a cool addon for LB. I commend you on your excellently worded post...
  21. I know I prob wont et any replies because we all know how useless you mods are. Deleting my posts, banning me from the live stream. You dont help no one smdh... Anyway... My example is bomberman ultra. TRophy info inside rpcs3 is located at inside the emu files at dev_hdd0\home\00000001\trophy\NPWR00389_00 As you can see png's are there. Sweet. Next picture is TROPCONF.sfm I dont know if you can see that picture, its come up real small on my screen. Anyway notice or not the "trophy id=000", you also got the trophy name in there "paint the town" etc etc. Next picture is tropusr.dat open in hex. The red circles are the trophy id's obviously theres more of them the further you go down. the yellow circle is an unlocked trophy. the blue cirle is a locked trophy. Would it be ossible to read hex or whatever im talking about and intergrate trophies into LB or am I talking out my shitpipe?
  22. I was playing with epsxe and both the scripts above work fine for me. Using hooks etc is beyond me, im not really very good with ahk. Im not sure why it works for me and not you but anyway escape quits epsxe so can try: $joy10:: ; my start button { keywait, joy10, t5 if errorlevel <> 0 { Send {esc down}{esc up} } } This works for me using keyboard buttons and 360 controller.
  23. Can try the following: Go to Launchbox\Autohotkey and change autohotkey to run as admin EDIT: actually test it with the original script and autohotkey.exe set to run as admin first. Then if that wont work maybe try the following. For dolphin: $joy10:: ; my start button { keywait, joy10, t5 if errorlevel <> 0 { Process, Close, Dolphin.exe ;closes emulator } } For ePSXe: $joy10:: ; my start button { keywait, joy10, t5 if errorlevel <> 0 { Process, Close, ePSXe.exe ;closes emulator } } For taito... I dont know taito so you will have to add the .exe yourself $joy10:: ; my start button { keywait, joy10, t5 if errorlevel <> 0 { Process, Close, taito.exe ;change taito.exe here } } Windows games... Is difficult because of so many .exe. Consider this experimental lol, im not sure how reliable it will be: $joy10:: ; my start button { keywait, joy10, t5 if errorlevel <> 0 { WinGetActiveTitle, WindowTitle WinGet, PName, ProcessName, %WindowTitle% Process, Close, %PName% } } The idea is... it gets the active window title, uses that title to get the process. Then closes the process. Again not sure how well any of this will work but anyway have fun.
×
×
  • Create New...