Hallo ich bins noch ma ich wollte fragen
Ob ich Labels als Link Benutzen Kann !
Beispiel Pusch me | Wenn mann drauf klickt das : https://autoit.de/www.xx.ws Kommt
Hallo ich bins noch ma ich wollte fragen
Ob ich Labels als Link Benutzen Kann !
Beispiel Pusch me | Wenn mann drauf klickt das : https://autoit.de/www.xx.ws Kommt
So?
#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]$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:
[autoit]while true
If GUIGetMsg() = $label Then ShellExecute("http://autoit.de")
WEnd
bzw.
[autoit]Opt("GUIOnEventMode", 1)
GUICtrlSetOnEvent($label, "_linkclick")
Func lickclick()
ShellExecute("http://autoit.de")
EndFunc
machst?
#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)
[/autoit][autoit][/autoit][autoit]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