A mam pytanie dlaczego ten kod nie chce się odpalić
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GDIPlus.au3>
Opt('MustDeclareVars', 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 194, 187, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 8, 8, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Exit", 96, 8, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Local $Form1, $hGraphic, $hPen, $hEndCap
_GDIPlus_Startup()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($Form1)
$hPen = _GDIPlus_PenCreate(0xFF000000, 2)
$hEndCap = _GDIPlus_ArrowCapCreate(3, 6)
_GDIPlus_PenSetCustomEndCap($hPen, $hEndCap)
_GDIPlus_GraphicsDrawLine($hGraphic, 8, 48, 169, 21, $hPen)
_GDIPlus_PenSetWidth($hPen, 1)
_GDIPlus_GraphicsDrawLine($hGraphic, 8, 80, 169, 21, $hPen)
_GDIPlus_PenSetWidth($hPen, 2)
_GDIPlus_GraphicsDrawLine($hGraphic, 8, 112, 169, 21, $hPen)
_GDIPlus_PenSetWidth($hPen, 3)
_GDIPlus_GraphicsDrawLine($hGraphic, 8, 144, 169, 21, $hPen)
_GDIPlus_PenSetWidth($hPen, 4)
Case $Button2
Exit
EndSwitch
WEnd