Thanks alot, that was ecxactly what i wanted Sorry but having the the Stop() reference in the code wich basically was a call to the Stop() function, i just changed it before posting here. i removed those stop() references and the script works as a charm now.
Now i need to learn more about using those dll files
P.S This is the code from above without those needless Stop References()
$dll = DllOpen("user32.dll")
Global $toggle = False
While 1
Sleep(250)
If WinActive("Darkfall Online") then
If _IsPressed("02", $dll) Then
While _IsPressed("02", $dll)
Sleep(10)
WEnd
SprintToggle()
EndIf
EndIf
WEnd
DllClose($dll)
Func SprintToggle()
If $toggle == False Then
Send("{F12 Down}")
$toggle = True
Else
Send("{F12 Up}")
$toggle = False
EndIf
EndFunc ;==>SprintToggle