Jump to content

How to place a link to website in msbox


Recommended Posts

Hi.

I'm new here and I have a problem.

I want to place a link to my website in msgbox but all I can place there is just a plain text.

What I want to place in my msgbox is:

www.google.com

What I can do is only:

www.google.com

(no link)

I will apreciate any help.

Best regards.

Edited by reverse
Link to comment
Share on other sites

Here is a Msgbox with a link that works

#include <GUIConstants.au3>

#region - GUI Create
GUICreate('Weblink', 200, 80)
$label = GUICtrlCreateLabel('www.google.com', 50, 10, 150)
GUICtrlSetColor($label, 0x5533FF)
GUICtrlSetFont($label, 9, 400, 4)
GUICtrlSetCursor($label, 0)
$button = GUICtrlCreateButton('OK', 50, 40, 100)
GUISetState()
#endregion

#region - GUI SelectLoop
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $label
            Run(@ComSpec & ' /c start www.google.com', '', @SW_HIDE)
        Case $msg = $button
            ExitLoop
    EndSelect
WEnd
#endregion
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...