#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include<array.au3>
$help = TrayCreateItem("帮助")
TrayItemSetOnEvent(-1, "_help")
$guanyu = TrayCreateItem("关于")
TrayItemSetOnEvent(-1, "_GY")
$_exit = TrayCreateItem("退出")
TrayItemSetOnEvent(-1, "ExitEvent")
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 15)
Opt("GUIOnEventMode", 1)
;Dim $Dll
;FileInstall("SkinCrafterDll.dll",@WindowsDir & "\temp\SkinCrafterDll.dll","1")
;FileInstall("BlackPearl.skf",@WindowsDir & "\temp\BlackPearl.skf","1")
$Form1 = GUICreate("Form1", 420, 310, 321, 135, $GUI_DROPACCEPTED, $WS_EX_ACCEPTFILES)
;_SkinGUI(@WindowsDir & "\temp\SkinCrafterDll.dll" ,@WindowsDir & "\temp\BlackPearl.skf", $Form1)
$Edit = GUICtrlCreateEdit("", 8, 64, 401, 145)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUISetOnEvent($GUI_EVENT_DROPPED, "GUI_Drop")
$MenuItem1 = GUICtrlCreateMenu("操作说明")
$MenuItem1_1 = GUICtrlCreateMenuItem("帮助", $MenuItem1)
GUICtrlSetOnEvent(-1, "_help")
$MenuItem1_2 = GUICtrlCreateMenuItem("关于", $MenuItem1)
GUICtrlSetOnEvent(-1, "_GY")
$MenuItem1_3 = GUICtrlCreateMenuItem("退出", $MenuItem1)
GUICtrlSetOnEvent(-1, "ExitEvent")
$Button1 = GUICtrlCreateButton("保存", 120, 224, 73, 25)
$Button2 = GUICtrlCreateButton("取消", 224, 224, 73, 25)
GUICtrlSetOnEvent(-1, "ExitEvent")
GUISetState()
WinSetOnTop($Form1, '', 1)
;$curFile = $BackupFilePath
;$fileresult = _ReadFileInfo($curfile)
#EndRegion ### END Koda GUI section ###
GUISetOnEvent($GUI_EVENT_DROPPED, "GUI_Drop")
While 1
Sleep(10)
WEnd
Func GUI_Drop()
$file = @GUI_DragFile
GUICtrlSetData($Edit, $file, @GUI_DragFile)
EndFunc ;==>GUI_Drop
Func _GY()
MsgBox(0, "", "TEST")
EndFunc ;==>_GY
Func _help()
MsgBox(0, "", "帮助")
EndFunc ;==>_help
Func ExitEvent()
Exit 0
EndFunc ;==>ExitEvent