I've bought a red engine colour pack, and have applied it to my Corvette. With its stock blue thrusters, switching back and forth between the colours makes them look like emergency lights. To automate this, I've made a toggle loop in AutoHotkey. Here it is:
#IfWinActive Elite - Dangerous (CLIENT)
;Police Lights toggle
#maxthreadsperhotkey 2
NumpadAdd::
{
toggle:=!toggle
while, toggle
{
send, {F1}
sleep, 320
}
}
return
When I press the Numberpad + key, this script will press F1 every 320 ms. Having bound F1 to Engine Colour in-game, it gives the desired effect. HOWEVER... I can't get it to work when I am typing into the chat box. As soon as I open it, the F1 presses are trapped into the chat box environment and do not get registered as a bound key. Can anyone think of a way around this? Perhaps a different key binding? I'm afraid this may be down to the game itself only allowing certain functions to be used whilst typing, like movement controls.
#IfWinActive Elite - Dangerous (CLIENT)
;Police Lights toggle
#maxthreadsperhotkey 2
NumpadAdd::
{
toggle:=!toggle
while, toggle
{
send, {F1}
sleep, 320
}
}
return
When I press the Numberpad + key, this script will press F1 every 320 ms. Having bound F1 to Engine Colour in-game, it gives the desired effect. HOWEVER... I can't get it to work when I am typing into the chat box. As soon as I open it, the F1 presses are trapped into the chat box environment and do not get registered as a bound key. Can anyone think of a way around this? Perhaps a different key binding? I'm afraid this may be down to the game itself only allowing certain functions to be used whilst typing, like movement controls.