Cheers. Written some code. Not working yet. I'll post a copy when I get back from the pub.
[EDIT]
Hmmm. Can't get it working. It recognises when the scroll lock key is pressed, but doesn't seem to remap the keys correctly.
Registered on the AutoHotKey forum, but account not activated yet.
Here's the code:
Code:
; Changes the WASD keys to ARROW keys when Scroll Lock is toggled on. Reverts when off.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;#IfWinActive ahk_class Freelancer
~ScrollLock::
KeyWait, ScrollLock
while GetKeyState("ScrollLock","T")
{
MsgBox,0,,Scroll lock ON
$w:: send {Up}
$Up:: send w
$s:: send {Down}
$Down:: send s
$a:: send {Left}
$Left:: send a
$d:: send {Right}
$Right:: send d
}