Info Posted June 28, 2010 Share Posted June 28, 2010 (edited) Why am I getting that error? Edit: yes I should have read the help file... Edited June 28, 2010 by Info Link to comment Share on other sites More sharing options...
KaFu Posted June 28, 2010 Share Posted June 28, 2010 You are calling the function somewhere not by a guictrlsetonevent() trigger, as there is no control involved @GUI_CtrlId is not defined... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
obiwanceleri Posted April 11 Share Posted April 11 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! Link to comment Share on other sites More sharing options...
Developers Jos Posted April 11 Developers Share Posted April 11 Great... and all of this was worth waiting for those 13 years! 🫤 obiwanceleri 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
obiwanceleri Posted April 11 Share Posted April 11 I DID SAY it was mostly for myself Help a newbie, comment your code! Link to comment Share on other sites More sharing options...
Developers Jos Posted April 12 Developers Share Posted April 12 ... then there is no need to bother us with it... is there? So please buy yourself a notepad and stop resurrecting old threads unnecessarily. Thanks SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now