Sign in to follow this  
Followers 0
HiddenBullet

Make so when someone clicks a label it links to a website

5 posts in this topic

i tried searching but couldn't find. in koda How can i make so when someone clicks on a label it will go to a webpage?

any help will be greatly appreciated

Share this post


Link to post
Share on other sites



Do you have a small script with a GUI and a label?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Case $label1

_IENavigate($oIE, "www.google.com")

Share this post


Link to post
Share on other sites

Like this?

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$GUI = GUICreate("Test", 458, 226, 120, 165)
$Link = GUICtrlCreateLabel("Autoit Forum", 64, 24, 63, 17)
GUICtrlSetColor(-1, 0x0000ff)
GUICtrlSetCursor(-1, 0)
GUICtrlSetTip(-1,"Visit AutoIt Forum")
GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $Link
            ShellExecute("http://www.autoitscript.com/forum")
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

Share this post


Link to post
Share on other sites

Thanks Everyone! i got it working thanks to 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