Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstants.au3>
- Global $iColor = 0x0645AD ;Farbe des Links
- Global $sURL_1 = "http://www.google.de" ;URL des ersten Links
- Global $sURL_2 = "http://www.autoit.de" ;URL des zweiten Links
- Global $sCaption_1 = "Google" ;Text des ersten Links
- Global $sCaption_2 = "AutoIt" ;Text des zweiten Links
- Global $hWnd_GUI = GUICreate("Link Label", 200, 80)
- Global $cLink_1 = GUICtrlCreateLabel($sCaption_1, 10, 20, 50, 20)
- GUICtrlSetColor(-1, $iColor)
- GUICtrlSetCursor(-1, 0)
- GUICtrlSetTip(-1, $sURL_1)
- Global $cLink_2 = GUICtrlCreateLabel($sCaption_2, 10, 45, 50, 20)
- GUICtrlSetColor(-1, $iColor)
- GUICtrlSetCursor(-1, 0)
- GUICtrlSetTip(-1, $sURL_2)
- GUISetState()
- While True
- Switch GUIGetMsg()
- Case $GUI_EVENT_CLOSE
- Exit
- Case $cLink_1
- ShellExecute($sURL_1)
- Case $cLink_2
- ShellExecute($sURL_2)
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement