Jump to content
Sign in to follow this  

How to place a link to website in msbox

Recommended Posts



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:


What I can do is only:


(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

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.

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)

#region - GUI SelectLoop
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $label
            Run(@ComSpec & ' /c start www.google.com', '', @SW_HIDE)
        Case $msg = $button

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.