Hi,
ich sollte mal ein Tool bauen um die Klicks an einem Tag zu Zählen
blos nach rund 10 Sekunden stürzt das Script einfach ab.
Hier mal mein Script
[autoit]
#include "MouseSetOnEvent_UDF.au3"
Global $x = 0
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_ClickEvent")
While Sleep(10)
WEnd
Func _ClickEvent()
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT)
$Pos = MouseGetPos()
If IsArray($Pos) Then MouseClick("left", $Pos[0], $Pos[1])
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_ClickEvent")
$x += 1
ConsoleWrite($x & @CRLF)
EndFunc ;==>_ClickEvent
Und die UDF ist im Anhang
schon mal Danke für die Antworten