I don't know how you do things, but I can easily record ~100 actions per second with this code:
Code:
#include <misc.au3>
$count = 0
$sActions = ""
$dll = DllOpen("user32.dll")
$begin = timerinit()
While (1)
$count += 1
$left = 0
$right = 0
$w = 0
$a = 0
$s = 0
$d = 0
$aMousePos = MouseGetPos()
$dif = timerdiff($begin)
If _IsPressed("01", $dll) Then
$left = 1
EndIf
If _IsPressed("02", $dll) Then
$right = 1
EndIf
If _IsPressed("57", $dll) Then; w
$w = 1
EndIf
If _IsPressed("41", $dll) Then; a
$a = 1
EndIf
If _IsPressed("53", $dll) Then; s
$s = 1
EndIf
If _IsPressed("44", $dll) Then; d
$d = 1
EndIf
$sActions &= $dif & "," & $left & "," & $right & "," & $w & "," & $a & "," & $s & "," & $d & $aMousePos[0] & "," & $aMousePos[1] & @crlf
sleep(10)
if $dif >= 1000 Then
ExitLoop
EndIf
WEnd
$dif = timerdiff($begin)
DllClose($dll)
$file = FileOpen(@scriptdir & "\recording.txt", 2)
FileWrite($file, $sActions)
FileClose($file)
msgbox(0, $count, $dif)
It goes up to around 15500 actions per second when I get rid of the sleep(10).