Jump to content

web link in the GUI


Recommended Posts

No. Yes... kinda.

You can create a pseudo link by changing the font style of a label.

Something like this:

$lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15)
GuiCtrlSetColor(-1, 0x0000ff)
GuiCtrlSetFont(-1, 8.5, 400, 2)
GuiCtrlSetTip(-1, 'http://www.google.com')

Untested, I just wrote that from memory.

Then in your main loop you can do something like this:

If $GuiGetMsg = $lb Then
     Run(@ComSpec & ' /c start "" "http://www.google.com"')
EndIf

Problem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun.

Edited by Saunders
Link to comment
Share on other sites

No. Yes... kinda.

You can create a pseudo link by changing the font style of a label.

Something like this:

$lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15)
GuiCtrlSetColor(-1, 0x0000ff)
GuiCtrlSetFont(-1, 8.5, 400, 2)
GuiCtrlSetTip(-1, 'http://www.google.com')

Untested, I just wrote that from memory.

Then in your main loop you can do something like this:

If $GuiGetMsg = $lb Then
     Run(@ComSpec & ' /c start "" "http://www.google.com"')
EndIf

Problem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun.

<{POST_SNAPBACK}>

Yea i just want people to be able to click the link http://www.blizzedout.com

ScreenShot

Link to comment
Share on other sites

  • 2 months later...

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