Jump to content
Sign in to follow this  
HiddenBullet

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

Recommended Posts

HiddenBullet

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
Valuater

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
houseonfire

Case $label1

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

Share this post


Link to post
Share on other sites
DeeRiee

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
HiddenBullet

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  

×

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.