Jump to content
LaunchBox Community Forums

Search the Community

Showing results for tags 'ahk'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • LaunchBox
    • Beta Testing
    • Collections and Builds
    • Features
    • Troubleshooting
    • Website/Forum Support
    • Noobs
    • News and Updates
  • User-Created Content and Downloads
    • Big Box Custom Themes
    • Big Box Sound Packs
    • Big Box Startup Videos
    • Custom Theme Tutorials
    • Game Media
    • LaunchBox Custom Themes
    • Pause Themes
    • Platform Media
    • Playlists & Playlist Media
    • Startup Themes
    • Third-Party Applications and Plugins (Released)
    • Third-Party Applications and Plugins (Development and Beta Testing)
    • Videos
  • LaunchBox Games Database
    • News and Updates
    • Contributions
    • Features
    • Troubleshooting
  • Off Topic
    • DOSBox
    • Emulation
    • Games
    • Monkeys
    • Buy / Sell / Trade

Categories

  • Big Box Custom Themes
    • Legacy Themes
  • LaunchBox Custom Themes
  • Startup Themes
  • Pause Themes
  • Big Box Startup Videos
  • Big Box Sound Packs
  • Third-party Apps and Plugins
  • Game Media
    • Game Theme Videos
    • Game Media Packs
    • Game Marquee Images
    • Game Clear Logos
    • Game Box Art
    • Game Cart Images
    • Arcade Cabinets
  • Platform Media
    • Platform Theme Videos
    • Platform Console Images
    • Platform Backgrounds
    • Platform Banners
    • Platform Clear Logos
    • Platform Bezels/Overlays
  • Playlists & Playlist Media
    • Playlists
    • Playlist Theme Videos
    • Playlist Backgrounds
    • Playlist Banners
    • Playlist Clear Logos
  • LaunchBox/Big Box Media

Blogs

  • Jason's Devotions
  • Thatmans Blog
  • THAT NINTENDO SWITCH EARLY REVEAL WAS FROM A STOLEN CONSOLE
  • Version 8.8

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 16 results

  1. Good Morning All, There are a few of us trying to use ahk script with taito games. Has anyone worked out a sure fire way to get this up and running? I am looking for exit emulator script to set to arcade joystick control panel button to exit. I have the script running with all the other emulators. There are other applications too. I know @Lukeyboy wants help with xpadder and keyboard controls Methods I have tried are:- 1 Trying to use windows game ahkscipt in LB 2 Setting up ROCKETLAUNCHER and using that as emulator to hook ahk into games. CHEERS BMAN
  2. Hey guys, I don't really use AHK and was wondering if I can get a hand from somebody, I'm thinking this would be easy. I have a game which always launches a "configurator" but it saves the settings from last time I played, so I can just hit Enter then go back to my couch. Can anybody automate this so that AHK fakes an "Enter" keypress say 10 seconds after game launches?
  3. Hi All, I am looking for ahk script that will allow me to hold "button 10" on my arcade stick for 5 seconds to exit out of an emulator. The code below that was submitted in the noob script section will exit on key press only. $joy10:: ; my start button { Process, Close, {{{StartupEXE}}} ;closes emulator } thanks in advance bman
  4. Hello, first post here. I really like Launchbox, it's working well for me. Is there a way to access the Platform or System name and Game or ROM name in the AutoHotKey script tab of the Edit Emulator window? Kinda like you can use {{{StartupEXE}}}. I would like to do things with that info when launching games. Thanks
  5. Took waaaaaay too much messing around to figure all parts of this out, but I have finally successfully found a working solution. The problem: I use an Xbox 360 controller for most emu gaming, and wanted to use the silver "Xbox logo" Guide button on the middle of the controller as my "Get to the menus" / "Get out of this game" button. My reasoning is pretty simple: the 360 has enough controls to serve as a pretty good solution for almost all kinds of games, up to the Playstation DualShock controls. ALL the buttons on the controller will be used up if you're using a 1:1 mapping to a DualShock controller except for the Guide button. RetroArch native recognizes this button already, and I use that for most of my emulation needs. However, I honestly don't like using the libretro port of MAME, as it's got a lot of weird things going on with its implementation, particularly for controls. However, MAME does not naively recognize the Guide button, because by default it's inputs are hidden. It doesn't show up as a normal joystick button, although it IS possible to read it's inputs. My solution: Because LaunchBox is awesome, it has support for AutoHotKey scripts built right in. This means you don't have to install and manage a separate application to get AHK functionality, you can just put add a script to an emulator's config in LB and LB will make that script active when the emulator is active. This is totally perfect for my needs, as it'll make it much less annoying to use non-RetroArch stuff. This script should be usable with pretty much any program or emulator, and it's pretty simple to customize. Caveats: This took me over a week to fully figure out. One important thing to know: The 360 Guide button will sometimes already do stuff on your system. If you have Steam installed and running, Steam will automatically open up Big Picture Mode. I'm a big fan of Valve and I own like hundreds of games in Steam, so I'm not gonna stop using that. The solution comes in the form of some awesome person on the internet who compiled a custom version of the file XInput1_4.dll. This is possible because a lot of Microsoft's library sourcecode is freely available online, to better assist developers who want to use their APIs & libraries. Some frickin genius built this version of XInput1_4.dll which filters out the Guide button inputs complete. To make use of this, you simply need to drop that file into your Steam install directory (same folder where you'll find Steam.exe). Then, if Steam's already running, completed exit it out of it and then re-launch. Then press your Guide button and marvel at how it does nothing at all. If you're running Windows 10 and you play PC games, you may have run into the "Game Bar" feature. This is new thing they've built in to try and make game streaming and other social stuff easier. Annoyingly, for a lot of people running Windows 10, pressing the Guide button will launch the Game Bar. I'm finding conflicting info on the "best" way to disable this functinality. I've taken some screenshots of what worked nice & easy for me. You can actually bring up the Game Bar in almost any program, including Chrome, by either pressing Guide or Windows Key+G. That should bring up the bar (as pictured in Step1.jpg). You can get into the Settings but clicking on the gear button on the right. That'll get you into the screen I've pictured in Step2.jpg. About halfway down on the settings is the option "Open Game bar using Guide on controller". UNCHECK this option. While you're at it you'll probably want to disable the Recording option completely, unless you plan on being a Twitch star If you have enabled the GameBar in Chrome just to get to the setting, once you're done simply uncheck the "Remember this as a game" option down towards the bottom. So far in my silly emulation adventures, these are the only 2 things I've found that grab the Guide button functionality. I ran into and solved both of these a while ago when I started working on getting my RetroArch setup figured out. Onward to MAME itself! MAME has been under development for years and is the subject of a lot of discussion, so researching my issues in controlling MAME gave tons of results, with a lot of info being old & useless. One great thing I learned: the old practice of having to patch the MAME source code and compile a custom build to get DirectInput working is no more. My AHK solution is working fine with the stock standard builds of MAME available from the official site. I tested both version 178 and 179. The key thing is, some time ago the devs added command line or .ini options allowing the user to specify what methods to use for inputs. The key one to make the AHK inputs work is keyboardprovider. This option MUST be set to "dinput" (for DirectInput). Without this, MAME will not read the keystrokes coming from AHK. The simplest way to set this is to just edit your mame.ini file, but you can also add it as a command line option if you want to do that instead for some reason. The actual script itself took a lot of trial and error, because I just couldn't get MAME to read inputs at all. A lot of this was my own ignorance for how AHK scripts work, but also MAME's intolerance to using the standard "Send" or "SendInput" methods most AHK scripts employ. The trick was to explicitly send both the "key down" and "key up" events with a separate "sleep 10" in between. I originally had a lot of problems with getting input from the Guide button, but I eventually found that using the "scancode" vk07sc000:: actually does work. It randomly stopped working on me a couple of times and I honestly don't know why, but rebooting my machine restored functionality. So, here's the script I'm using to translate the 360 Guide button into a press of the Tab key: vk07sc000:: Send {Tab down} Sleep 10 Send {Tab up} return I have tested this with the current version of LaunchBox and MAME 178 and 179 and it works exactly as expected. By default the Tab key brings up the MAME OSD, allowing the user to do admin tasks like fix inputs and exit out of MAME, which is exactly what I want. You can easily change what keystroke this sends, or remap what Tab does in MAME. Hope this post helps some people out, as it was a lot of work figuring this one out XInput1_4.dll
  6. Ok trying to add Flash Games for my launchbox using Flash Projector. Problem is that there is no command line to start it in full screen. So, one has to hit CTRL-F once the player has loaded i feel like a Auto Hot Key script should work for this (window wait and send CTRL F command) . But I don’t know how to write that script. Anyone able to Help.? is this possible?
  7. Hi Saw this tool for testing AHK send and click commands , This tool comes from Snowflake at AHK FORUM https://autohotkey.com/board/topic/95653-send-and-click-tool-v41/
  8. Hi, I want to avoid an emulator to be opened until I press a key. There are many threads talking about closing the emulator with some key (for example esc key), but I haven't seen any topic related to doing the opposite, this means, waiting for a key and once pressed then launch the emulator. I don't know if this may be possible because what I can see is that launchbox launches both the emulator and the ahk script at the same time. Any thoughts?
  9. Version 1.0.0

    76 downloads

    The main purpose of the included AutoHotKey code was a proof of concept. I wanted to add an additional "overlay" to the standard GCE Vextrex overlays that come furnished with the MAME artwork files (see the attached picture). Sort of a single purpose function similar to what RocketLauncher can do. The attached file has two main parts, one, a file with the name of vextrex.zip. This is a replacement for the standard MAME overlays and should be placed in your artwork folder under your MAME installation location. The included png files are higher quality that the default overlays. Note: I did not create these files. I just packaged them up after having sourced them around the Internet. Second, a file with a name of Overlays.7z. Extract this archive in your LaunchBox installation directory. You will then have an Overlays directory with two subdirectories, e.g. Code and Vectrex. The code directory has the "proof of concept" source called showbezel.ahk (Note: this source requires the popular gdip.ahk library, which is allowed to be distributed with this archive). This can be run as-is from the Code directory and should wait until MAME runs a Vectrex rom, then display my custom overlay from the Vectrex directory. You can also take the showbezel.ahk source and paste it into the "AutoHotkey Script" tab if you have created a custom Emulator entry to execute Vectrex roms in Launchbox (don't run a stand alone copy of the script if you do this). For example, I created a new emulator called Vectrex, but it points to my MAME64.exe program. I then created an entry under the "Associated Platforms" tab with "GCE Vectrex" as the "Associated Platform" and with the "Default Emulator" box checked. I also have used the ability to "Use Custom Command-Line Parameters:" for each Vectrex rom so MAME uses the vectrex.zip artwork file, example: vectrex -cart %romfile% -view "star castle" (see the attached picture for more info).
  10. Mame_Vectrex_Overlay_AHK.7z View File The main purpose of the included AutoHotKey code was a proof of concept. I wanted to add an additional "overlay" to the standard GCE Vextrex overlays that come furnished with the MAME artwork files (see the attached picture). Sort of a single purpose function similar to what RocketLauncher can do. The attached file has two main parts, one, a file with the name of vextrex.zip. This is a replacement for the standard MAME overlays and should be placed in your artwork folder under your MAME installation location. The included png files are higher quality that the default overlays. Note: I did not create these files. I just packaged them up after having sourced them around the Internet. Second, a file with a name of Overlays.7z. Extract this archive in your LaunchBox installation directory. You will then have an Overlays directory with two subdirectories, e.g. Code and Vectrex. The code directory has the "proof of concept" source called showbezel.ahk (Note: this source requires the popular gdip.ahk library, which is allowed to be distributed with this archive). This can be run as-is from the Code directory and should wait until MAME runs a Vectrex rom, then display my custom overlay from the Vectrex directory. You can also take the showbezel.ahk source and paste it into the "AutoHotkey Script" tab if you have created a custom Emulator entry to execute Vectrex roms in Launchbox (don't run a stand alone copy of the script if you do this). For example, I created a new emulator called Vectrex, but it points to my MAME64.exe program. I then created an entry under the "Associated Platforms" tab with "GCE Vectrex" as the "Associated Platform" and with the "Default Emulator" box checked. I also have used the ability to "Use Custom Command-Line Parameters:" for each Vectrex rom so MAME uses the vectrex.zip artwork file, example: vectrex -cart %romfile% -view "star castle" (see the attached picture for more info). Submitter dragon57 Submitted 08/03/2017 Category Third-party Apps and Plugins  
  11. Hi all, I'm sure somebody has done that already but I didn't find anything in the forums... I'm using AHK for a couple of games for keymapping. The problem is I need to make sure that the keymapping gets killed after the game is closed. I know I technically can do that directly in the AHK script but many key mapping scripts can be used on several games. So I'd like to use the same script for many games with as less as possible customization. So if you have a good, fast to implement on many games, way of doing so. Thanks for the advises.
  12. Here is a script I use to navigate Bigbox with controller buttons instead of the x/y axis or POV. Edit the controller numbers and buttons to suit. eg: 1JOY12 = 1st controller/joystick and button HID number 12 Edit sleep time to change the rapid fire. Its not suitable for games as it emulates the way the keyboard driver inputs. It only activates when BigBox is the main window so it wont interrupt games So press key, inputs, then if held after half a second rapid fires. It should feel exactly like using the arrow keys. Hopefully sometime soon the BigBox team will add remapping of navigation directions.... #IfWinActive, LaunchBox Big Box { 1Joy11:: { Send {Up} KeyWait 1Joy11, T0.5 If ErrorLevel While GetKeyState("1Joy11"){ Send {Up} Sleep 10 } } return 1Joy12:: { Send {Down} KeyWait 1Joy12, T0.5 If ErrorLevel While GetKeyState("1Joy12"){ Send {Down} Sleep 10 } } return 1Joy13:: { Send {Left} KeyWait 1Joy13, T0.5 If ErrorLevel While GetKeyState("1Joy13"){ Send {Left} Sleep 10 } } return 1Joy14:: { Send {Right} KeyWait 1Joy14, T0.5 If ErrorLevel While GetKeyState("1Joy14"){ Send {Right} Sleep 10 } } return }
  13. First of all I only recently purchased a premium license and this is my first post to the forum. So hello everyone! I'm excited for learning about how to make launchbox/bigbox work for me. It's already working pretty good. I'll have some tips/tricks and/or scripts to contribute in the near future My question is about some Windows/Steam games using non-skippable launchers (Final Fantasy IV for Steam being my first example found). There's a FF4.exe as well as a launcher.exe (I don't have it in front of me, close enough) but the FF4.exe just brings up the launcher anyway. I remembered that autohotkey had a feature that will search the screen for a match to a given image and perform actions based on a match (like move mouse there/left click). I even found a user created ahk function that's supposed to make this really easy to do. All I'm really asking is if anyone knows of an existing script like this in the forum or some place else? I mean a drop-in-and-works sort of a thing. Doesn't have to be AHK of course. Windows game click-play-on-the-launcher scripts generically, not necessarily the FF4 one specifically. I thought I should ask since figuring it out on my own with the AHK function will take probably between 1 and 10 hours of effort to figure out. That is what this sort of thing usually takes me at least. No need for that if the thing already exists. Here's the thread for the AHK function I mentioned. If anybody was interested: https://autohotkey.com/boards/viewtopic.php?f=6&t=18719
  14. IfExist, .\NesysService.exe Run, NesysService.exe -app Sleep, 5000 IfExist, .\cryptserver.exe Run, cryptserver.exe Sleep, 10000 IfExist, .\RFIDGod_inject.exe Sleep, 5000 Run, RFIDGod_inject.exe Escape:: Process,close,NesysService.exe Process,close,RFIDGod_inject.exe Process,close,Game.exe Process,close,cryptserver.exe Process,close,Start_Game.exe Process,WaitClose,NesysService.exe Process,WaitClose,RFIDGod_inject.exe return Save script as Save_Game.exe. Compile with AutoHotScript so end results is Save_Game.exe. It's not much but I hope it helps.
  15. how to run bat file with ahk script? any help? thanks
  16. I've been working on trying to make the center "Guide" button on my Xbox 360 controller usable in emulators outside of RetroArch. I found a brilliant AHK library for working with Xbox 360 controllers over on GitHub, which does allow the user to read the Guide button inputs. However, putting this code into LaunchBox as an AHK script or even using an #Include statement causes LaunchBox to crash when attempting to launch a game. The library does work with the latest AutoHotKey mainline branch, so I'm guessing the issue is something to do with the way the library works. I'm guessing this is probably a question for Jason: What version(s) or AHK is LaunchBox natively compatible with? I may mess around with trying to strip down what I actually need out of that library, since the only thing I'm really trying to do is make a Guide button detector. Generally, all the other buttons are easy to access without any special sauce, and the Guide button would be super useful in Launchbox.
×
×
  • Create New...