Jump to content

Recommended Posts

Posted (edited)

Why am I getting that error?

Edit:

yes I should have read the help file...

Edited by Info
  • 13 years later...
Posted

Replying specifically because I keep on making the same mistake and each time I have to search the net LOL

Instead of writing :

GUICtrlSetOnEvent(-1,"_My_Hyperlink") ; <<-- Proper code

I'd write :

GUICtrlSetOnEvent(-1,_My_Hyperlink()) ; BAD, even without the empty parenthesis it won't work 

You also want to add 

Opt("GUIOnEventMode", 1)

somewhere at the top of your program. 

Once that's done, make sure you call your hyperlink like this :

ShellExecute(GUICtrlRead(@GUI_CtrlId))

This assumes whatever text you have in your label is a valid internet ressource

 

Help a newbie, comment your code!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...