-
-
So?
#include <GUIConstantsEx.au3>
$Form1 = GUICreate("Form1", 165, 81, 192, 124)
$Label1 = GUICtrlCreateLabel("AutoIt", 24,
$Label2 = GUICtrlCreateLabel("Google", 24, 32)
$Label3 = GUICtrlCreateLabel("Youtube", 24, 56)
GUISetState()While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Label1
ShellExecute("http://www.autoit.de/")
Case $Label2
ShellExecute("http://www.google.de/")
Case $Label3
ShellExecute("http://www.youtube.com/")
EndSwitch
WEnd -
ist jetzt net getestet aber wenn du einfach mal:
while true
If GUIGetMsg() = $label Then ShellExecute("http://autoit.de")
WEndbzw.
Opt("GUIOnEventMode", 1)
GUICtrlSetOnEvent($label, "_linkclick")Func lickclick()
ShellExecute("http://autoit.de")
EndFuncmachst?
-
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 117, 36, 254, 124)
$Label1 = GUICtrlCreateLabel("klick mich", 16, 8, 51, 17)
GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif")
GUICtrlSetCursor (-1, 0)GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Label1
ShellExecute("http://autoit.de")
EndSwitch
WEnd -
Cool hilfen dankvfür die schnelle hilfe
-
So hätt ichs gemacht
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 101, 26, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
$Label1 = GUICtrlCreateLabel("Link", 40, 8, 24, 17)
GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Label1
ShellExecute("http://www.google.de")EndSwitch
WEnd -
Das ist das gleiche was wir 3 vor dir schon geschrieben haben...
-
ja aber sieht eher so aus wie ein link lbl