Naja auch wenn du jetzt einen gefunden hast :D.
Spoiler anzeigen
#include <GUIConstants.au3>
#include <Misc.au3>
Opt("GUIOnEventMode", 1)
[/autoit] [autoit][/autoit] [autoit]$hWnd = GUICreate("Anschläge", 200, 150)
$cLabel1 = GUICtrlCreateLabel("Gesamt:", 5, 5, 50, 15)
$cLabel2 = GUICtrlCreateLabel("Pro Minute:", 5, 25, 60, 15)
$cCounter = GUICtrlCreateLabel(0, 100, 5, 90, 15)
$cKeysPerMinute = GUICtrlCreateLabel(0, 100, 25, 90, 15)
$cEdit = GUICtrlCreateEdit("", 5, 45, 190, 100)
GUISetState()
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
[/autoit] [autoit][/autoit] [autoit]Dim $aKeys[43]
For $i = 0 To 42
$aKeys[$i] = False
Next
$vUser32DLL = DllOpen("User32.dll")
$iKeysPressed = 0
$Timer = TimerInit()
While Sleep(10)
For $i = 48 To 90
If _IsPressed(Hex($i, 2), $vUser32DLL) Then
If $aKeys[$i - 48] = False Then
$aKeys[$i - 48] = True
$iKeysPressed += 1
_Update()
EndIf
Else
$aKeys[$i - 48] = False
EndIf
Next
WEnd
Func _Update()
$KeysPerMinute = $iKeysPressed / (TimerDiff($Timer) / 60)
GUICtrlSetData($cCounter, $iKeysPressed)
GUICtrlSetData($cKeysPerMinute, Round($KeysPerMinute, 2))
EndFunc ;==>_Update
Func _Exit()
Exit
EndFunc ;==>_Exit