Hab es selber gelöst..
C
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$x = 400
$y = 300
$Form1 = GUICreate("Form1", $x, $y, 192, 114)
$downbttn = GUICtrlCreateButton("<", 104, 48, 27, 25)
$Label1 = GUICtrlCreateLabel("100", 144, 56, 22, 17)
$upbttn = GUICtrlCreateButton(">", 176, 48, 27, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
while 1
$aCursorInfo = GUIGetCursorInfo()
If $aCursorInfo[2] And $aCursorInfo[4] = $upbttn Then
GUICtrlSetData($Label1, GUICtrlRead($Label1) + 10)
sleep(100)
EndIf
If $aCursorInfo[2] And $aCursorInfo[4] = $downbttn Then
GUICtrlSetData($Label1, GUICtrlRead($Label1) - 10)
sleep(100)
EndIf
WEnd
Alles anzeigen