Hier ist ein kleines Mausklickzähler Prog:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiButton.au3>
#Include <Misc.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Sebastian\Desktop\autoit\mousecount\clickcount.kxf
$Form1 = GUICreate("Form1", 592, 150, 352, 491)
$Label1 = GUICtrlCreateLabel("Wie oft hat deine Maus heute gepiept?", 0, 0, 590, 52)
GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0x008000)
$Label2 = GUICtrlCreateLabel("Linksklicks:", 0, 52, 590, 48)
GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
$Label3 = GUICtrlCreateLabel("Rechtsklicks:", 0, 102, 590, 48)
GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xFFFBF0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$countl=0
$countr=0
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
if _IsPressed('01') Then
$countl=$countl+1
GUICtrlSetData($label2,"Linksklicks: " & $countl)
EndIf
if _IsPressed('02') Then
$countr = $countr+1
GUICtrlSetData($label3, "Rechtsklicks: " &$countr)
endif
sleep(100)
WEnd
Darf bearbeitet werden.
Es ist net so schön :=)