Hi,
1)
Ich hab dir mal folgendes gemacht.
Spoiler anzeigen
Opt("GUIOnEventMode", 1)
Global $Setted
$hGUI = GUICreate("", 633, 454, -1, -1)
GUISetOnEvent(-3, "_Exit")
$Label = GUICtrlCreateLabel("Klick", 128, 144,30, 17)
GUICtrlSetFont($Label, 10,400)
GUICtrlSetOnEvent($Label,"Label")
GUISetState(@SW_SHOW)
While 1
$aInfo = GUIGetCursorInfo($hGUI)
If UBound($aInfo) < 5 Then ContinueLoop
If $Setted = $aInfo[4] Then ContinueLoop
If $aInfo[4] = $Label Then
GUICtrlSetFont($Label, 10, 400, 4)
GUICtrlSetColor($Label, 0x0000FF)
$Setted = $aInfo[4]
Else
GUICtrlSetFont($Label, 10, 400, 0)
GUICtrlSetColor($Label, 0x000000)
$Setted = $aInfo[4]
EndIf
WEnd
Func Label()
MsgBox(0, "", "Hallo Welt")
EndFunc ;==>Label
Func _Exit()
Exit
EndFunc ;==>_Exit
2) Dafür gibt es folgende Funktion
Spoiler anzeigen
Func GuiCtrlCreateGif($pic_dir, $left, $up, $right, $down, $border = 0)
$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, $left, $up, $right, $down)
$oIE.navigate ("about:blank")
$oIE.document.body.style.border = $border&"px"
$oIE.document.body.background = $pic_dir
$oIE.document.body.scroll = "no"
EndFunc
3)
So ist das GUI an der Seite
$GuiBreite = 500
$GuiHoehe = 500
GUICreate("TestGUI", $GuiBreite, $GuiHoehe, @DesktopWidth - $GuiBreite)
GUISetState(@SW_SHOW)
Do
Until GUIGetMsg() = -3