saqib Posted July 31, 2007 Share Posted July 31, 2007 How can I add a clickable link to a GUI? What control do I need to use?saqib http://www.linkedin.com/in/encryption Link to comment Share on other sites More sharing options...
martin Posted July 31, 2007 Share Posted July 31, 2007 How can I add a clickable link to a GUI? What control do I need to use?saqib http://www.linkedin.com/in/encryptionAll you need todo is have a label for the link. When someone clicks it then have a line like thisShellExecute("www.google.com") Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
saqib Posted July 31, 2007 Author Share Posted July 31, 2007 All you need todo is have a label for the link. When someone clicks it then have a line like thisShellExecute("www.google.com")Actually I want the link to be in a Edit Control (GUICtrlCreateEdit). Is that possible? saqib http://www.linkedin.com/in/encryption Link to comment Share on other sites More sharing options...
GaryFrost Posted August 1, 2007 Share Posted August 1, 2007 Actually I want the link to be in a Edit Control (GUICtrlCreateEdit). Is that possible? saqib http://www.linkedin.com/in/encryptionNo, would have to be RichTextEdit control SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ReFran Posted August 1, 2007 Share Posted August 1, 2007 From Zedna. You may search fo that or also other hyperlink examples. HTH, Reinhard expandcollapse popup#NoTrayIcon #include <Constants.au3> #include <GUIConstants.au3> Opt("GUICloseOnESC",1) Opt("GUIOnEventMode",1) $about = GuiCreate("About",215,150,-1,-1,BitOR($WS_CAPTION,$WS_SYSMENU)) GUISetOnEvent ($GUI_EVENT_CLOSE, "AboutOK" ) GUICtrlCreateIcon (@AutoItExe,-1,11,11) GUICtrlCreateLabel ("App name 1.0",59,11,135,20) GUICtrlSetFont (-1,10, 800, 0, "Arial"); bold GUICtrlCreateLabel ("(c) 2005" & @CRLF & @CRLF & "Zedna",59,30,135,40) $email = GUICtrlCreateLabel ("author@somewhere.com",59,70,135,15) GuiCtrlSetFont($email, 8.5, -1, 4); underlined GuiCtrlSetColor($email,0x0000ff) GuiCtrlSetCursor($email,0) GUICtrlSetOnEvent(-1, "OnEmail") $www = GUICtrlCreateLabel ("www.autoitscript.com/forum/",59,85,140,15) GuiCtrlSetFont($www, 8.5, -1, 4); underlined GuiCtrlSetColor($www,0x0000ff) GuiCtrlSetCursor($www,0) GUICtrlSetOnEvent(-1, "OnWWW") GUICtrlCreateButton ("OK",65,115,75,23,BitOr($GUI_SS_DEFAULT_BUTTON, $BS_DEFPUSHBUTTON)) GUICtrlSetState (-1, $GUI_FOCUS) GUICtrlSetOnEvent(-1, "AboutOK") GUISetState(@SW_SHOW, $about) While 1 Sleep(100) WEnd Func OnEmail() Run(@ComSpec & " /c " & 'start mailto:author@somewhere.com?subject=Something', "", @SW_HIDE) EndFunc Func OnWWW() Run(@ComSpec & " /c " & 'start www.autoitscript.com/forum/', "", @SW_HIDE) EndFunc Func AboutOK() Exit EndFunc Func OnAutoItExit() GUIDelete($about) EndFunc Link to comment Share on other sites More sharing options...
ReFran Posted August 1, 2007 Share Posted August 1, 2007 Who for the hell "Lobishomen". Dis I overread somthing? Link to comment Share on other sites More sharing options...
GaryFrost Posted August 1, 2007 Share Posted August 1, 2007 (edited) From Zedna. You may search fo that or also other hyperlink examples.HTH, ReinhardThe user wants it inside of an edit type control, like the RichEdit control doesYou can get fancy with a HyperLink control also http://www.autoitscript.com/forum/index.ph...t=0&start=0 Edited August 1, 2007 by Lobishomen SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ReFran Posted August 1, 2007 Share Posted August 1, 2007 Thanks, Loaded this fantastic example already down from GarFrost (the guy with the leather jacket). Sometimes I read or write to fast. Best regards, Reinhard 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