I want ''e down'' to hold down ''s'' & ''f'' and ''e up'' to release ''s'' & ''f''. But this doesn't seem to be working. Any help?
#include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep(10)
; If E key is pressed hold key S & F down until E is released
If _IsPressed("45", $dll) Then
Send("{s down}") ;Holds the s key down
Send("{f down}") ;Holds the f key down
While _IsPressed("45", $dll)
Sleep(10)
WEnd
EndIf
WEnd