Mein bisheriger Code :
Spoiler anzeigen
#include <Misc.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
Global $Left = 0
$Form1 = GUICreate("Form1", 272, 100, 192, 124)
$Label1 = GUICtrlCreateLabel("LeftClicks :", 24, 48, 56, 17)
$Label2 = GUICtrlCreateLabel($Left, 96, 48, 50, 17)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case _IsPressed("01")
Left()
EndSwitch
WEnd
Func Left()
While 1
If _IsPressed("01") Then
$Left += 1
GUICtrlSetData($Label2, $Left)
EndIf
WEnd
EndFunc ;==>Left
Probelm : Es funktioniert eigentlich das einzige Problem ist ,dass er auch zählt wenn man die Maus gedrückt hält ,wäre nett wenn jemand eine Antwort für mich hat.
Es ist sicher nicht so schwer aber ich bin erst neu in der "AuoIT-Szene" und komme einfach nicht drauf.
Edit Oscar: AutoI-Quellcode formatiert und in AutoIt- und Spoiler-Tags gesetzt. Bitte beim einfügen von Scripten immer auf die Quellcode-Ansicht umschalten. Im Editor-Modus wird das Script verhunzt.