Author Topic: Changing controls  (Read 9740 times)

atom_47

  • Wannabe
  • Posts: 1
  • OS:
  • Windows 8.1/Server 2012 Windows 8.1/Server 2012
  • Browser:
  • Opera 35.0.2066.92 Opera 35.0.2066.92
    • View Profile
  • Playstyle: Keyboard
Changing controls
« on: March 16, 2016, 04:58:57 PM »
How do I change controls for games that don't have in game option / edit via text file? SHIFT jumping is killing me.

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Android 4.4.2 Android 4.4.2
  • Browser:
  • Chrome 47.0.2526.83 Chrome 47.0.2526.83
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Changing controls
« Reply #1 on: March 16, 2016, 06:10:13 PM »
Pretty much the only way to do this is through a keybinder; I recommend using Autohotkey:

https://autohotkey.com/

You'll have to look up a small bit of coding, but once you get that it's fairly easy to use

Syd

  • Cherry Eater
  • Posts: 63
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
  • Playstyle: Keyboard
Re: Changing controls
« Reply #2 on: April 03, 2016, 04:20:41 PM »
making an ahk-script to change controls is easy. for example, if you want to change the jump key from shift to w add this line to your script:
w::shift

With this line the script will only work when a fangame-window is active (it should be before the lines that change the controls):
#IfWinActive ahk_class TRunnerForm
This works for 99,9% of fangames (not for boshy or game maker studio games).
For studio games, copypaste the code and replace the second line with "#IfWinActive ahk_class YYGameMakerYY". For Boshy the last part of that line should be "Mf2MainClassTh".

also, add this line to the beginning of the script, otherwise you might get a message saying that you activated to many hotkeys in the last few seconds:
#MaxHotkeysPerInterval 9999

the script I use looks like this:
(click to show/hide)

Hope this helps  :atkHappy: