Sign in to follow this  
Followers 0
Vladi243

Join link to GUI

3 posts in this topic

Hey,

I want to join a link to my GUI.

I thought to create a button that opens IE in the link, but a prefer to create a text link on the GUI.

Is there any way to create a text link on the GUI (something like BBCode in forums)?

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

GUICreate("Click my link!")
$Link = GUICtrlCreateLabel("Visit my website", 100, 100, 200)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetFont(-1, 11, Default, 4)
GUICtrlSetCursor(-1, 0)
GUISetState()

While 1
    $iMsg = GUIGetMsg()
    Switch $iMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Link
            ShellExecute("http://www.google.com")
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

Thank you :)

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