Opt("MustDeclareVars", 1)
#include "GuiHyperLink.au3"
_Main()
Func _Main()
Local $GUI, $msg
Local $Links[2] = ["http://www.Autoitscript.com/forum", "mailto:custompcs@charter.net"]
Local $Link_On[2] = ["AutoIt Script home page", "UDF Maniac"]
$GUI = GUICreate("Hyper Link Test", 500, 250)
$hl_hwnd[0] = _GuiCtrlHyperLinkCreate ($GUI, _
'Welcome to the AutoIt Script home page - the home of AutoIt scripting and related applications. Be sure to Check out AutoIt Script home page ', _
"http://www.Autoitscript.com/forum", "AutoIt Script home page", _
10, 10, 480, 40, $WS_DLGFRAME, $WS_EX_CLIENTEDGE)
ReDim $hl_hwnd[2]
$hl_hwnd[1] = _GuiCtrlHyperLinkCreate ($GUI, _
'For Question/Suggestions e-mail: UDF Maniac of the AutoIt Forum', _
"mailto:custompcs@charter.net", "UDF Maniac", _
10, 60, 480, 20, -1, -1, "Arial", 14)
ReDim $hl_hwnd[3]
$hl_hwnd[2] = _GuiCtrlHyperLinkCreate ($GUI, _
'Welcome to the AutoIt Script home page - the home of AutoIt scripting and related applications.' & @LF & @LF & _
'For Question/Suggestions e-mail: UDF Maniac of the AutoIt Forum', _
$Links, $Link_On, _
10, 120, 480, 70, -1, $WS_EX_CLIENTEDGE, "Arial Bold", 12, 900, True, False, False)
Local $button = GUICtrlCreateButton("FileDialog",10,220,120,20)
GUISetState(@SW_SHOW)
;Register WM_NOTIFY events
GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $button
Local $message = "Hold down Ctrl or Shift to choose multiple files."
Local $var = FileOpenDialog($message, "C:\Windows\", "All (*.*)|Text files (*.txt)|Images (*.jpg;*.bmp)|Videos (*.avi;*.mpg)", 1 + 4 )
EndSelect
WEnd
EndFunc ;==>_Main