jayjay
Members-
Posts
385 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Downloads
Gallery
Blogs
Everything posted by jayjay
-
I cant get access to the videopath through the api either... selectedGame.ApplicationPath works fine. selectedGame.BackGroundImagePath works as well and so does most other stuff. Just cant seem to get the video path.
-
Just thought I would post my progress. https://www.youtube.com/watch?v=3FGAz2J0TuU&feature=youtu.be There is some... lets say caveats. For instance... Getting the video to exactly where u want it is a royal pain in the shitpipe. The video is just a video in the theme directory. Having the pause menu match the video to the game being played is going to be difficult and a story for another day. Can only have 1 animated gif. The moving gifs you see on my vid is 2 gifs unpacked and put together. The moving images... you cant have the images overlap each other otherwise you get this hostile take over effect, where the 2 images cross each other one of the images emerges as the other image. Dont know whats up with that. With everything you see in the vid, takes roughly 70mb of ram when active. About 50mb when hidden. There are other things but cant remember at the moment. Oh whenever I create a script thats hundreds of lines of code, it always crashes on my win7 32bit... so there's that. Will need to test it I guess. Iv still got to sort out the font, that isnt saving correctly. Iv still got to do options for the saved and loaded screen... which... is... long... and then the hard part of actually getting this to write to the pause menu script and have it work and then lastly make the gui prettier. But yeah... that's it so far. @bbweiners have you had the time to test the post I put in the third party thread yet? Could do with knowing if it works for others. If you wanna look over this script let me know. But at the moment nothing is saved when exit.
-
Hey @bbweiners. When you get a chance can you test this please. Its the mario pause menu again. Its just a test to try to get image buttons to work inside retroarch. Its been a ball ache to get working but yet seems simple. Im hoping it also works for you as well. Extract the folder to Launchbox directory. No need to rename the folder. Inside the folder, run "generate LB script.ahk". A txt file will open, copy the text to launchbox's retroarch ahk tab. Start a game. Press esc. And can you let me know if you see coin blocks for buttons. MarioPauseMenuTest.zip
-
Yeah the coin block buttons were my original theme. They are images (.bmp) but they wouldn't work inside retroarch. I'll go back to the image buttons at some point. The buttons being in the wrong position, Im working on a theme editor and your be able to move and resize the buttons. Im not smart enough and far to lazy to work out where the button position should be for each size screen. Its easier to code the ability to move buttons then it is to work out all coordinates and sizes. The theme editor is some way off though. I started again. Instead of writing 4 gui's one at a time for the buttons settings. Iv written 1 gui and used a loop to create the other 3. It seems to be working out well... "so far". It will save me time in the long run but still a while away before I will complete it.
-
In the mario pause menu this is 1 button, the cancel button: Gui, Add, Button, vBT1 x200 y600 w200 h50 hwndHBT1 gCancel, Cancel Opt1 := [3, 0x00FFFF, 0xcfcfcf, "Red", , , "Black"] Opt2 := {2: 0xFFFF00, 3: 0x00FF00} Opt3 := {2: 0xFFFF00, 3: 0x00FF00, 7: 0x3c7fb1} Opt5 := {2: 0xFFFF00, 3: 0x00FF00, 7: 0x3c7fb1, 8:3} If !ImageButton.Create(HBT1, Opt1, Opt2, Opt3, , Opt5) MsgBox, 0, ImageButton Error Btn1, % ImageButton.LastError This uses Class_Image_Button. Where you see "Red" thats the font colour. "black" is border colour, you might be able to change those for hex codes, im not sure. All the 0x00FFFF etc's are hex codes for the colours. Im not sure on what anything else does. I also modified your script... poorly... because I was having trouble adding the transparency. I basically turned your script into a mess... like usual.
-
Here's a vid of @bbweiners pausemenu. https://youtu.be/otwUdlWrric I modified his script a little. https://youtu.be/hVRqSY50WfA I used a mario theme because its easy to find images that dont need work. Although the images I used arnt great. My original was supposed to look like this... With the black transparent. The buttons are images. But whenever I start the pause menu from within retroarch the buttons are blank, works fine outside retroarch. Also the grey bit around the buttons has to stay there. Otherwise the focus is hidden behind the button image. Yeah im not great at themes. Edit: Forgot to upload the file... MarioPauseMenu.zip
-
I think we all know jasons pause menu will kick ass, like all his work. But til then this is cool. You can give this a try by simply downloading it. If you have ahk installed double click on the pausemenu.ahk. if you dont have it installed copy the autohotkey.exe from launchbox\autohotkey\ to the pausemenu directory and rename it to exactly the same as the pause menu script and then double click on it. Its a simple app with few features. And u can have the xbox guide button open and close it by adding Vk07sc000:: { Send {esc down}{esc up} } Return To the autohotkey tab in launchbox along with the couple of lines in the read me. Its also easy to remove this. Delete the pause menu folder and remove the code from the ahk tab in launchbox. It can be disheartening knowing that jason will come along and blow your pause menu away but the third party app section isnt exploding with activity. So no reason not to to do it. And i enjoy just ahking even knowing it will be supassed.
-
Oh yeah... iv added stuff above that line since then lol. Ah that's annoying, It works well for me. I'll have to think of another way to get it to save. Its not to much of a problem. Thanks for letting me know.
-
Now Iv tested it again... although it works, I get the fail message if I leave it a while. Can you test this Open config.ahk in scite Go to line 147 Replace: return true with msgbox %FontTypeSze% Run the config, change font type and save... and tell me if you get a message box with something that looks like: Gui,Font,c s35 Q4,Impact or any other font type.
-
The way @bbweiners has set this out it would be possible to have custom pngs and fonts on a per emulator basis. I guess with modifying the way this is installed and run just for retroarch its also possible to have custom config for retroarch cores. But to be honest that will be a long way off yet. If you want per platform get over to the poll on bitbucket and vote for expanding on additional apps in launchbox. A per platform ahk script would work for this. @bbweiners Here's a test for the font type. It is just a test script. But will give you an idea of what the folder structure will need to be like to have different themes etc. Run the config, click the font and size button and then use the preview button. @bbweiners Hey ol friend, ol buddy, ol pal.. here's the thing. At some point I will want to play around with the buttons on your pause menu. I would like to be able to use picture buttons but... there are not enough profanities in any language to explain how bad I am at creating themes, hate using photoshop, hate searching and never finding good images. Creating a theme editor... yeah sure, creating a theme... just no. Any chance you or even someone else could find or create some images to use as buttons. Due to limitations... in my skill level. The images need to include the words for the buttons, so will need to include the words save, load, cancel, power within the image. And they need to be .bmp and about the same size as your buttons. I would really really appreciate it, otherwise an example theme will just be white background and black writing. lol. config with font type.zip
-
I happen to be working on font type for the config.ahk now, its the first thing I would have added. Iv found a font tool by someone named "Hellbent aka. CivReborn". Hopefully I can incorporate his work into mine.
-
Hi @bbweiners. Hope your good mate. Was just wondering... in your dpad script is there any reason why you haven't included the joystick movement. I think its on the same page as the POV in the ahk docs. Just in case you didn't notice it, here is the dpad script with the joystick copied and pasted to it. You should make sure it runs ok though. The movement might be to quick or slow. To speed up joystick movement decrease the 175 in this: SetTimer, WatchAxis, 175 To slow the movement down increase the 175. Do the same with the WatchPov as I haven't tested it properly. When I get a chance I could add the ability to change movement speed in the config.ahk. Unless you intentionally left the joystick off the script. Which means again Iv wasted my time lol. DPad.ahk
-
Yeah mate thats pretty much it. If only if i had thought of explaining it with I might of saved myself some time lol. If your still good with using my script what do you think of a theme editor. Im not sure how long it will take and whats even possible. But do you think its worth the time?
-
Iv added notes but I'll try to explain the best I can... PauseMenuScriptArr := [] This is to initialise an array. An array is ummm... imagine it as a stack of information. So for our purpose we stack 1 line of text from your pause menu script at a time. Line 1 is stacked at position 1, line 2 is stacked at position 2 and so on. Loop, Parse, PauseMenuScript, `r,`n { PauseMenuScriptArr.Insert(A_LoopField) } This here is the stacking in action. Loop, , pause menu script.ahk, by each line of text Insert each line of text (A_LoopField) into PauseMenuScriptArray. ChangeFontSize = Gui, Font, s%FontSze%, Zrnic Rg PauseMenuScriptArr.Insert(29, ChangeFontSize) PauseMenuScriptArr.Remove(30) CancelButton = GUI, Add, Button, gCancel x%ButtonXCoordinate% y%ButtonYCoordinate% w%ButtonWidth% h%ButtonHeight%, Cancel PauseMenuScriptArr.Insert(30, CancelButton) PauseMenuScriptArr.Remove(31) SaveButton = Gui, Add, Button, gSave x+%ButtonSpacing% y%ButtonYCoordinate% w%ButtonWidth% h%ButtonHeight%, Save PauseMenuScriptArr.Insert(31, SaveButton) PauseMenuScriptArr.Remove(32) LoadButton = GUI, Add, Button, gLoad x+%ButtonSpacing% y%ButtonYCoordinate% w%ButtonWidth% h%ButtonHeight%, Load PauseMenuScriptArr.Insert(32, LoadButton) PauseMenuScriptArr.Remove(33) PowerButton = GUI, Add, Button, gPower x+%ButtonSpacing% y%ButtonYCoordinate% w%ButtonWidth% h%ButtonHeight%, Power PauseMenuScriptArr.Insert(33, PowerButton) PauseMenuScriptArr.Remove(34) These here are what you should focus on. This above modifies these lines: Gui, Font, s10, Zrnic Rg GUI, Add, Button, gCancel x200 y200 w200 h50, Cancel Gui, Add, Button, gSave x+10 y200 w200 h50, Save GUI, Add, Button, gLoad x+10 y200 w200 h50, Load GUI, Add, Button, gPower x+10 y200 w200 h50, Power Whatever line these commands are on in your script, you need to change the config to match. As example... ChangeFontSize = Gui, Font, s%FontSze%, Zrnic Rg All this is saying is "ChangeFontSize" is a variable and this variable equals this text... Gui, Font, s(user in-puted new size), Zrnic Rg PauseMenuScriptArr.Insert(29, ChangeFontSize) This is saying... Pause menu script Array, Insert at position 29, the variable "ChangeFontSize". This is what you would have to change. If in your pause menu script you move this line of text: Gui, Font, s10, Zrnic Rg to line 50, you would have to change the 29 in the command above to 50. And because of how this works, adding this command to the stack ChangeFontSize = Gui, Font, s%FontSze%, Zrnic Rg doesnt replace position 29, it inserts it at 29 and pushes everything within the stack up by 1. So we have to remove 30 with this PauseMenuScriptArr.Remove(30) Im struggling to explain to be honest. I'll try something simpler. In your script, If you move this: GUI, Add, Button, gCancel x200 y200 w200 h50, Cancel to line 70. In the config script, change this: PauseMenuScriptArr.Insert(30, CancelButton) PauseMenuScriptArr.Remove(31) to this PauseMenuScriptArr.Insert(70, CancelButton) PauseMenuScriptArr.Remove(71) In your script, If you move this: GUI, Add, Button, gSave x200 y200 w200 h50, Save to line 102. In the config script, change this: PauseMenuScriptArr.Insert(31, SaveButton) PauseMenuScriptArr.Remove(32) to this PauseMenuScriptArr.Insert(102, CancelButton) PauseMenuScriptArr.Remove(103) If your struggling to understand my shite explanation your more than welcome to not use my script. I wont be offended or you can ask me to update my script before you release again, im not far away. There are prob better ways to do this. I was using this method as apparently its a good way to keep variables and stored info etc to a minimum for better performance etc.
-
Heres the new config. Config.ahk
-
Yeah. Have you moved the buttons about using the config? Do you have scite4autohotkey installed? If yeah can you tell me which line number... GUI, Add, Button, gCancel x248 y638 w200 h50, Cancel That is at?
-
Have you tested the config with your new script? its doesn't work for me now lol. Sorry I was supposed to get back to you about updating the config to reflect changes in the pause menu. Also because I haven't added a Gui Exit command, the config runs in the background on exit and can only exit through task manager as you added #notrayicons lol, sorry mate my fault, i should of got back to you sooner. I'll get back to you shortly, just got back from work and need shower and food. wont be long.
-
Just a quick warning. If you make any changes to your pause menu script, dont use the config.ahk on the newly changed script without backing it up. The config.ahk makes changes to lines 27,28,29,30,31, (i think its those lines if im remebering corectly) on the pause menu script so if you move your gui's about or add any code above those lines, or even modify those lines, the config.ahk will mess the pause menu script up. Its simple to update the config.ahk to reflect changes in the pause menu script. When im near my pc i'll post up how... if you havent worked it out already.
-
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.
-
-
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.
-
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.
-
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?
-
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.
-
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.