Jump to content

Link for label in form - how?


Recommended Posts

Hi, please, how make URL link for label in GUI? I need clicktable lbl, not any btn.

...

$GUI_LBL_LINK_TO_HOMEPAGE = GUICtrlCreateLabel("Click here to visit BLABLAH", 100, 100, 100, 100)

....

And... ?

Thanks

Link to comment
Share on other sites

#include <GuiConstants.au3>

GUICreate('', 200, 100)
$lbl = GUICtrlCreateLabel('Click Here', 75, 42, 50, 16)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetCursor(-1, 0)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $lbl
            ShellExecute('http://www.autoitscript.com')
    EndSwitch
WEnd

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...