Th3W1z4rd Posted May 8, 2008 Share Posted May 8, 2008 hello! Is it possible to insert a link to a website or a email in a messagebox? if it si, how? ty :-) Link to comment Share on other sites More sharing options...
tempman Posted May 8, 2008 Share Posted May 8, 2008 From AutoIt Help Function Reference MsgBox -------------------------------------------------------------------------------- Displays a simple message box with optional timeout. MsgBox ( flag, "title", "text" [, timeout] ) Parameters flag The flag indicates the type of message box and the possible button combinations. See remarks. title The title of the message box. text The text of the message box. timeout [optional] Timeout in seconds. After the timeout has elapsed the message box will be automatically closed.So the answer is no, but you can try these: #include <IE.au3> $URL = "http://www.autoitscript.com" $answer = MsgBox(68, "Visit", $URL) If $answer = 6 Then $oIE = _IECreate ($URL, 0) Exit EndIf Exit Link to comment Share on other sites More sharing options...
Zedna Posted May 8, 2008 Share Posted May 8, 2008 In standard MessageBox it's not possible but you can create your own Dialog for example like this one: 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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Th3W1z4rd Posted May 8, 2008 Author Share Posted May 8, 2008 right, I understood ty 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