(08-17-2017, 01:15 AM)maddog_dave Wrote: That will switch the keys, when freelancer is the active window, but I'm after a toggle, so that I can change them back and forth when I want. Your script won't do that.
I need to be able to switch between the two on a keypress, and I can't get that working.
I think my script is close, but obviously not right.
Heeeeeeeeeeelp.
Well, ofcourse not, that was not my intention at that point. The previous script switches the keys just fine and it works for steering in game.
The trouble is, that althought what you want seems rather simple, it is in fact not that easy to achieve. Or at least, I have not figured the way yet.
The following AHK script does switch WASD and Arrow Keys in Freelancer and can be toggled On/Off by F12.
The trouble here is, that although it does work correctly when in the chatbox, the game does not recognize the keys for ship movement. Obviously, this will need some more work.
#IfWinActive ahk_class Freelancer
{
; Disable Hotkeys on Autohotkey start.
Hotkey, w, Off
Hotkey, a, Off
Hotkey, s, Off
Hotkey, d, Off
Hotkey, Up, Off
Hotkey, Left, Off
Hotkey, Down, Off
Hotkey, Right, Off