#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
#include <ListViewConstants.au3>
Opt("GUICloseOnESC", 0)
Opt("OnExitFunc","Quit")
$MainWindow = GUICreate(" kn007 E-Mail:kn007@126.com", 610, 303)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $MainWindow, "int", 500, "long", 0x00040010)
GUICtrlCreateGroup("1)", 2, 8, 321, 273)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x808080)
$List = GUICtrlCreateListView("文件所在位置(桌面目录或程序目录) | 名称 | 路径 ", 4,
30, 313, 248)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x808080)
$Refresh = GUICtrlCreateButton("刷新(&R)", 330, 196, 121, 33, 0)
GUICtrlSetTip(-1, "刷新启动项列表")
GUISetState(@SW_SHOW)
abc()
While 1
$Msg = GUIGetMsg()
Select
Case $Msg = $GUI_EVENT_CLOSE
Quit()
Case $Msg = $Refresh
Reabc()
EndSelect
WEnd
Func abc()
$Sum = 0
$i = 1
While 1
;$key='这里要写什么'
If @error <> 0 then ExitLoop
;记得去掉注释号 GUICtrlCreateListViewItem('这里要写什么',$List)
$i=$i+1
$Sum = $Sum + 1
WEnd
$i = 1
While 1
; $key= ' 这里要写什么'
If @error <> 0 then ExitLoop
; GUICtrlCreateListViewItem('这里要写什么'),$List)
$i=$i+1
$Sum = $Sum + 1
WEnd
GUICtrlSetData($Status, ' 读取完毕! 共有' & $Sum & '个项目...')
EndFunc
Func Reabc()
_GUICtrlListView_DeleteAllItems($List)
Read()
EndFunc
Func Quit()
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $MainWindow, "int", 300, "long", 0x00050010)
Exit
EndFunc