Hi everybody, happy new year to all of you
i just started with Autoit, have some knowleges in vba, and couldn't find some help about my prob. via "search"
so i create some buttons and labels with koda and want that wenn i click on Button1 that the Label2 changes its color or get hidden
here's a part of the script :
CODE$Button1 = GUICtrlCreateButton("", 93, 15, 16, 16, 0)
GUICtrlSetBkColor(-1, 0x515251)
GUICtrlSetOnEvent(-1, "Button1Click")
GUICtrlSetCursor (-1, 3)
$Button2 = GUICtrlCreateButton("", 160, 15, 16, 16, $BS_DEFPUSHBUTTON)
GUICtrlSetBkColor(-1, 0x515251)
GUICtrlSetOnEvent(-1, "Button2Click")
GUICtrlSetCursor (-1, 3)
$Label1 = GUICtrlCreateLabel("Nav", 83, 54, 33, 24)
GUICtrlSetFont(-1, 11, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetOnEvent(-1, "Button1Click")
$Label2 = GUICtrlCreateLabel("Nav", 83, 54, 33, 24)
GUICtrlSetFont(-1, 11, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetOnEvent(-1, "Button2Click")
#EndRegion ### END Koda GUI section ###
Func Button1Click()
If "Button1Click" = True Then
$Label2 = GUICtrlSetColor(-1, 0x00FFFF)
$Label3 = GUICtrlSetState(1, $GUI_HIDE)
EndIf
EndFunc
Thanks for some help
Phil