Use autoIT with the following script:
MsgBox(0," Press F10 to pause, press F9 to quit")
HotKeySet("{F10}", "TogglePause")
HotKeySet("{F9}", "Terminate")
HotKeySet("+!d", "ShowMessage");Shift-Alt-d
Global $Paused
While 1
WinWaitActive ("Vindictus")
send ("{INSERT KEY YOU WANT IT TO SPAM(CHECK AN AUTOIT CHART FOR COMPATIBLE KEYSTROKES)}")
Sleep(1)
WEnd
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
ToolTip("Thankyou and Goodbye",0,0)
Sleep(2000)
Exit 0
EndFunc