Jump to content
LaunchBox Community Forums

Search the Community

Showing results for tags 'autohotkey'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • LaunchBox
    • Android
    • 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

  • Articles

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
  • Game Theme Videos
  • Exclusive Bezels

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 21 results

  1. 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?
  2. 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
  3. My Setup is a little different for Cemu so please read before jumping down my throat about missing autohotkey script Dualshock 4 running a modified version of ds4windows that has motion detection output that Cemu can hook into (Motion aiming in BOTW) Launchbox and Big Box works brilliantly with exiting other emulators with the controller shortcut. But it will not fully exit Cemu, just makes it not full screen. I did have the autohotkey script in place for Cemu that fixed the exiting issue but it is not longer working because... I use a batch file per Wii U game to add it to launchbox. This allows me for each game to say "controller 1 is a gamepad and controller 2 is a wiimote and here are the custom CPU and graphic settings for this game". So I can specify for each game the controller types, graphic and cpu settings. Is there another way of doing this without batch files? I add each batch file to Launchbox like you would a non steam game. Everything launches and runs fine, I just cant exit without a keyboard Any suggestions? I've tried launching a seperate AHK at the time of launching a cemu game but it doesnt seem to work as it's almost as if cemu completely takes over the gamepad. I've even tried putting in a ds4windows script without any luck. And I've even tried launching it through steam with a controller shortcut to alt+f4. Nothing. Any suggestions?
  4. I am trying to set up an AutoHotKeyScript to run with my FS UAE emulator to control the mouse with my Xbox 360 controller. However the script doesn't run. I have tested the script with AutoHotKey seperately and it works. What am I doing wrong? Below is the script exactly as I have pasted it into the emulator's AutoHotKey tab.
  5. Name: AutoHotKey Tutorial Category: Tutorials Date Added: 2018-01-30 Submitter: Pyrometheous In this video, I go over how to use AutoHotKey Script to launch the Higan emulator in Full Screen from BigBox. AutoHotKey Tutorial
  6. Installation Instructions To use the smart switch, do the following: - Rename AutoHotkey.exe to AHK.exe - Copy AutoIt3.exe into the Launchbox\AutoHotkey directory - Copy AutoHotkey.exe included in ZIP file into the Launchbox\AutoHotkey directory How to use The smart switch will default to using AutoHotkey to maintain compatibility with existing scripts. To use AutoIt3.exe, have the first line contain ";AutoIt" Example: Msgbox(0,"Hello World","You are using AutoIt!") ;AutoIt You can download AutoIt3.exe at https://www.autoitscript.com/files/autoit3/autoit-v3.zip Source Code Source Code is included. View the file AutoHotkey.au3 in SciTE.exe packaged with AutoIt or via the notepad. AutoHotKey/AutoIt Smart Switch License MIT License AutoHotkey.zip
  7. 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?
  8. Please help as i am losing my mind! I am having some severe issues with the x-arcade tankstick working with Launchbox/bigbox 7.1. First of all i was having issues binding keys in retroarch. Every time i try and bind keys it says error unable to save configuration file. So i moved on from trying to use retroarch for a all-in-one emulator. So i first started with basic ahk script inside the emulator edit tab. I used a few basic commands to exit emulator and remap a few keys such as alt and cntrl that are standard buttons on the tankstick. Launchbox/bigbox completely ignores everything in the autohotkey tab. I run the same commands in autohotkey outside of launch box and everything works great. I open a notepad file and all buttons map correctly. I also download fusion and set controls based on the newly mapped buttons and works flawlessly. I then leave it all as it's working, point launchbox emulator to fusion (works in standalone), and nothing works now. Everything works fine outside of launchbox and i am not having much luck with finding others with similar issues. I am so confused and it stinks because i love this interface so much, but if i can't get any help i will have to try something else. I feel im pretty tech savvy, so this is very disappointing. Can anyone please give me a hand? I thoroughly hate asking for help, but would be extremely grateful for any pointers at all. gk
  9. Version 1.0.0

    79 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. #NoEnv ; ================================================================================= ; FOR MAME TO ACCEPT AHK SCRIPTS keyboardprovider IN mame.ini MUST BE SET TO dinput! ; ================================================================================= ; Fast Forward 4Joy15:: If GetKeyState("4Joy15") { SetKeyDelay, -1, 110 MmC:=!MmC if MmC = 1 Send {Insert down} else Send {Insert up} return } Return ; Pause 4Joy20:: If GetKeyState("4Joy20") { SetKeyDelay, -1, 110 Send {p} } Return ; Exit 4Joy17:: If GetKeyState("4Joy17") { SetKeyDelay, -1, 110 Send {escape} } Return ; Load State 4Joy18:: If GetKeyState("4Joy18") { SetKeyDelay, -1, 110 Send {F7 up}{Shift up} Sleep 100 Send {F7} Sleep 100 Send {s} } Return ; Save State 4Joy19:: If GetKeyState("4Joy19") { SetKeyDelay, -1, 110 Send +{F7} Sleep 50 Send {s} } Return This is a series of small scripts mapping various MAME functions (Load State, Save State, Pause, Exit, Fast Forward) to gamepad buttons on my 4th controller. Modify the scripts to map them to your own controllers or add new ones - you may also need to modify some timings in the Sleep, SetKeyDelay commands if a script doesn't work for you. NOTE1: If you don't want to modify your mame.ini, open Launchbox, go to the Default Command-Line parameters for MAME and add: -keyboardprovider dinput This is needed so MAME can accept input from AutoHotKey. NOTE2: The Save States script, saves a state with the name "s" automatically (and the Load State script loads it back). You can change the "s" to any other number/letter on both scripts or you can remove the Sleep 50, Sleep 100 & Send {s} lines if you want to save states manually.
  12. So, I recently purchased Doom II on GOG, and something I had forgotten since childhood is that the controls aren't what I'm used to. I found this script LAlt::return n::LAlt #If GetKeyState("LAlt","P") w::Up a::Left s::Down d::Right however I can't find a place to add it as an autohotkey script in Launchbox. My goal is to use "W" for forward "S" as down, "A" as strafe left, & "D" as strafe right. I believe "Alt + left/right" are the strafes by default, up/down directional buttons move you forward and back. The mouse I'd like to keep the same, I'm just finding it impossible to play without WASD movement, and strafing is too much work to commit to muscle memory. Anyway, I was just wondering if this was possible. Doom II does launch with DOSBOX, but it's all pre-configured via GOG.
  13. 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.
  14. 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 }
  15. I was looking for a way to display some info - mainly easily forgotten key combinations - while playing games with WinUAE through Launchbox. WinUAE is using rawinput so it can't accept directinput commands from Autohotkey. Searching through the http://eab.abime.net i came upon a script which uses the WinUAE Pipe to get events from Autohotkey. I modified the script so when i press button 16 on my 4th gamepad, WinUAE goes into window mode, a message is displayed with some helpful info and waits for me to press OK (the game is still running normally in the background). Pressing OK makes WinUAE to revert to fullscreen mode. If you want to modify the script to send different events to WinUAE, all the events WinUAE accepts are listed here: https://github.com/tonioni/WinUAE/blob/master/inputevents.def #NoEnv ;Display Help Info #IfWinActive, ahk_Exe WinUAE64.exe 4joy16:: WinUAE("EVT SPC_TOGGLEFULLSCREEN 1") MsgBox,,INFO,Use END+(1 to 0) to swap disks WinUAE("EVT SPC_TOGGLEFULLSCREEN 1") return #IfWinActive WinUAE(command) { VarSetCapacity(result, 4096) if !DllCall("CallNamedPipe", "str", "\\.\pipe\WinUAE" , "astr", command, "int", StrPut(command, "cp0") , "ptr", &result, "int", 4096 , "uint*", bytesRead, "uint", 1) throw Exception("CallNamedPipe failed with error " A_LastError) return RegExReplace(StrGet(&result, bytesRead, "cp0"), "\R$") } NOTE: I use WinUAE64. If you use the 32-bit WinUAE you must change the second line to read #IfWinActive, ahk_Exe WinUAE.exe
  16. Hello everyone! So I've had this problem with Nestopia. I have two Xbox 360 controllers that I've configured with it. I didn't like the fact that if both weren't on, Nestopia would have a popup saying "One or more joysticks is not connected would you like to remap?" And no matter if I clicked Yes or No, it'd erase my config. So I set the .xml file to read only. That helped and I even managed to get rid if an annoying popup when I closed it saying "Can't save the configuration!" by copying a ePSX ahk script I found online. So what could I do to get rid of the popup "One or Joysticks is not connected"? I've looked everywhere online and on AHK forums and I can't figure out how to automatically close the window when opening a rom using Nestopia. Here's what I've tried: ClosePopup: WinClose, Nestopia return $Esc:: { Process, Close, {{{StartupEXE}}} } I'm not a coding expert, but I've tried examples similar to what I've read but nothing will get rid of that startup dialog box. I'm just trying to make my setup so I don't need to use a keyboard or mouse.
  17. I have written an AutoHotKey Script to open an image of my controller-keyboard layout for each of my emulators. The way it works right now, it opens the image when the emulator starts, opens for 15 sec., then closes, and goes back into the game. This works well enough, but what I'd like to know is, is there a way to have the emulator wait until the script exits? I've noticed that I can do this with each individual game. If I add it as an additional program, I can have the main application (the emulator) wait until the additional application exits ( compiled AutoHotKey Script). And while I could do this for each individual game there is no way to bulk add an additional app for all game for a given console. As you can imagine, this could be very time consuming to do with each individual game, especially if you have say every game for that given system. My reason for wanting the emulator to wait is so that you don't miss the start up for each game, which I feel takes away a little bit of the experience. So if anyone has any ideas on how to implement this at the emulator level instead of at the ROM level, I'd really appreciate it.
  18. If you use STEEM for your Atari ST emulation, here's a quick AHK script to Pause/Unpause the emu using a controller button. I setup ALT+P using the STEEM Shortcuts to Toggle Start/Stop Emulation. When the emulation stops, STEEM drops you out of fullscreen. If you resume by pressing ALT+P again, STEEM leaves you in window mode, but.. If you turn fullscreen on instead, the emulator resumes automatically. So the script bellow - mapped to my 4th controller button 20 - works as follows (using MyC:=!MyC: as an on/off switch): when you press the button it sends ALT+P to STEEM to pause the emu entering window mode. The next time you press the button it sends ALT+Enter to revert to fullscreen and resume the emulation. Repeat... ; Pause #If ( not WinActive("steem") ) 4Joy20:: If GetKeyState("4Joy20") { SetKeyDelay, -1, 110 MyC:=!MyC if MyC = 1 Send !{p} else Send !{enter} return } #If Return
  19. Joy6:: Send !{enter} Sendinput {Alt Down} Sendinput {D} Sendinput {I} Sendinput {E} Sendinput {Alt Up} WinWait, Choose a disk image file WinWaitClose Send !{enter} Return I am assuming that you start Hoxs64 in fullscreen mode (else you don't need this script!) Hoxs64 must be in windows mode to be able to change disks, so this script disables fullscreen and opens up the dialog to select another disk. As soon as you are done it reverts to fullscreen mode. The script runs by pressing the controller button 6 - change this to your liking in the first line.
  20. 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.
  21. I'm using BigBox on a cabinet in a semi public location. If someone chooses a game and walks away, I didn't want MAME running indefinitely. I would rather return to BigBox so the next person knows he can choose a game. I used the following script to exit MAME if there is no input for two minutes. In LaunchBox's Manage Emulators window, choose MAME and Edit Emulator. Then, on the AutoHotkey Script tab, enter the following: Hope it works for someone else too!
×
×
  • Create New...