#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Global $aLabel[6][2] = [[5]], $fLabel
$hGui = GUICreate('Test', 200, 200)
$nButton = GUICtrlCreateButton('Click me, please', 10, 10, 180, 30)
GUICtrlSetFont(-1, 14, 400)
For $i = 1 To $aLabel[0][0]
$aLabel[$i][0] = GUICtrlCreateLabel('Test Label Num #' & $i, 10, 50 + 30 * ($i - 1), 180, 20, $SS_CENTER)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetFont(-1, 12, 400, 2)
Next
GUISetState()
While 1
If $fLabel Then
$aCursor = GUIGetCursorInfo()
If Not @error Then
For $i = 1 To $aLabel[0][0]
If $aLabel[$i][0] = $aCursor[4] Then
If Not $aLabel[$i][1] Then
GUICtrlSetBkColor($aLabel[$i][0], 0xFFFFFF)
GUICtrlSetColor($aLabel[$i][0], 0x000000)
GUICtrlSetFont($aLabel[$i][0], 14, 600, 0)
$aLabel[$i][1] = 1
EndIf
Else
If $aLabel[$i][1] Then
GUICtrlSetBkColor($aLabel[$i][0], 0x000000)
GUICtrlSetColor($aLabel[$i][0], 0xFFFFFF)
GUICtrlSetFont($aLabel[$i][0], 12, 400, 2)
$aLabel[$i][1] = 0
EndIf
EndIf
Next
EndIf
EndIf
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $nButton
$fLabel = Not $fLabel
If $fLabel Then
GUICtrlSetFont($nButton, 14, 600)
Else
GUICtrlSetFont($nButton, 14, 400)
EndIf
EndSwitch
WEnd