#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $mune1, $mune2, $mune3, $mune4, $mune5, $filemenu
HotKeySet("F1", "help")
;GUI
GUICreate("my test 江湖", 400, 400)
GUISetIcon(@SystemDir & "", 0)
;mune
$mune1 = GUICtrlCreateMenu("文件[F]")
GUICtrlCreateMenuItem("新建脚本[N]", $mune1)
GUICtrlCreateMenuItem("打开脚本[O]", $mune1)
$separator1 = GUICtrlCreateMenuItem("", $mune1, 2) ;create a separator line
GUICtrlCreateMenuItem("重置脚本[R]", $mune1)
GUICtrlCreateMenuItem("关闭脚本[C]", $mune1)
GUICtrlCreateMenuItem("保存脚本[S]", $mune1)
GUICtrlCreateMenuItem("文件另存为[A]..", $mune1)
$separator1 = GUICtrlCreateMenuItem("", $mune1, 8);create a separator line
$next_mune1 = GUICtrlCreateMenuItem("退出程序[X]", $mune1)
$mune2 = GUICtrlCreateMenu("工具[T]")
$mune3 = GUICtrlCreateMenu("搜索[S]")
$mune4 = GUICtrlCreateMenu("查看[V]")
$mune5 = GUICtrlCreateMenu("选项[O]")
$mune6 = GUICtrlCreateMenu("帮助[H]")
$help_1 = GUICtrlCreateMenuItem("帮助文档[H]", $mune6)
;$help_mune6 = GUISetIcon(@MyDocumentsDir & "help", 0)
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE Or $msg = $next_mune1
ExitLoop
Case $msg=$help_1
help()
EndSelect
WEnd
Func help()
ShellExecute("help.txt")
EndFunc ;==>help
|