#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=test.exe ; Название выходного файла, после компиляции
#AutoIt3Wrapper_Compression=2 ; Уровень комперсии
#AutoIt3Wrapper_Res_Language=1049 ;русский язык
#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/SF /SV /CV /CF /CS /
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#NoTrayIcon
#RequireAdmin
#Include <file.au3>
#include <APIConstants.au3>
#include <Array.au3>
#include "ComboConstants.au3"
#include "EditConstants.au3"
#include "GUIConstants.au3"
#include "GuiListView.au3"
#Include "GUIMenu.au3"
#Include "GUIStatusBar.au3"
#include "StaticConstants.au3"
#include "WindowsConstants.au3"
#Include <Misc.au3>
#include <ColorPicker.au3>
#include "WinAPIEx.au3"
#include <GuiImageList.au3>
#Include <GuiButton.au3>
#include <GUIConstantsEx.au3>
#include "GUICtrlOnHover.au3"
#include <ButtonConstants.au3>
#Include <Constants.au3>
#Include <GUIConstantsEx.au3>
#Include <WinAPI.au3>
$hForm = GUICreate('MyGUI', 400, 300)
$Button_1 = GUICtrlCreateLabel("Кнопка", 80, 165, 260, 20)
GUICtrlSetColor(-1,0xf60a2b)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont($Button_1, 10, 400, 4)
_GUICtrl_OnHoverRegister($Button_1, "_Hover_Func", "_Hover_Func")
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $GUI_EVENT_CLOSE
ExitLoop
Case $Button_1
MsgBox(0, '', 'Button has ben pressed!')
EndSwitch
WEnd
Func _Hover_Func($iCtrlID, $iParam)
Local $sConsole_Data = "Hovered"
Local $iLabel_Color = 0xf60a2b
Local $iLabel_FontAttrib = 4
Local $iLabel_CursorID = 0
If $iParam = 2 Then ;Indicates On *Leave* Hover process
$sConsole_Data = "NOT Hovered"
$iLabel_Color = 0xFFFFFF
$iLabel_FontAttrib = 4
$iLabel_CursorID = -1
EndIf
Switch $iCtrlID
Case $Button_1
GUICtrlSetColor($iCtrlID, $iLabel_Color)
GUICtrlSetFont($iCtrlID, 8.5, 400, $iLabel_FontAttrib)
GUICtrlSetCursor($iCtrlID, $iLabel_CursorID)
EndSwitch
EndFunc