My advice would be to start with the examples in the Help file and learn how to structure AutoIt code. It's great you have ideas but looking back through you previous questions, they could have been avoided by looking at the examples and searching the forum. Without knowing much about AutoIt your ideas will just stay as ideas.
Therefore I will provide a simple example to your question, in the hope that you will go away and study the help file. Good luck.
#include <GUIConstantsEx.au3>
_Main()
Func _Main()
Local $aArray, $hGUI, $iLabel
$hGUI = GUICreate("Press Esc to Get Pos")
$iLabel = GUICtrlCreateLabel("Hover over me.", 10, 10, 100)
GUISetState(@SW_SHOW, $hGUI)
While 1
$aArray = GUIGetCursorInfo($hGUI)
If Not @error Then
If $aArray[4] = $iLabel Then
Beep(500, 100) ; SoundPlay or Beep.
EndIf
EndIf
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndFunc ;==>_Main