Sign in to follow this  
Followers 0
reverse

How to place a link to website in msbox

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



You could make your own MsgBox() from a GUI and use Gary's GUI Hyper Link UDF


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0