我刚刚在学习autoit还是个初学者!
我自己做好了一个界面,想做一个自己想要的运行程序菜单!
不知道如何实现单击上面的按钮能够运行EXE文件!
如图:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=E:\热咖啡里的冰U盘工具\Professional System Tools\系统维护菜单.kxf
$Form1 = GUICreate("系统维护工具菜单 v1.0", 294, 350, 191, 125)
$Tab1 = GUICtrlCreateTab(1, 24, 292, 305)
GUICtrlSetFont(-1, 9, 400, 0, "宋体")
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("系统维护")
$Button1 = GUICtrlCreateButton("联想一键6.0", 16, 56, 129, 25, 0)
$Button2 = GUICtrlCreateButton("Vista一键还原1.3.5", 152, 56, 129, 25, 0)
$Button3 = GUICtrlCreateButton("U盘写保护工具 ", 16, 88, 129, 25, 0)
$Button4 = GUICtrlCreateButton("个人资料转移3.5", 152, 88, 129, 25, 0)
$Button5 = GUICtrlCreateButton("增加", 16, 120, 129, 25, 0)
$Button6 = GUICtrlCreateButton("Button6", 152, 120, 129, 25, 0)
$TabSheet2 = GUICtrlCreateTabItem("设置软件")
$Button7 = GUICtrlCreateButton("Windows优化大师 8.0", 16, 56, 129, 25, 0)
$Button8 = GUICtrlCreateButton("修改CPU显示信息", 152, 56, 129, 25, 0)
$Button9 = GUICtrlCreateButton("电源模式修改工具 ", 16, 88, 129, 25, 0)
$Button10 = GUICtrlCreateButton("深度XP优化工具v1.6.5 ", 152, 88, 129, 25, 0)
$Button11 = GUICtrlCreateButton("Button11", 16, 120, 129, 25, 0)
$Button12 = GUICtrlCreateButton("Button12", 152, 120, 129, 25, 0)
$TabSheet3 = GUICtrlCreateTabItem("精品收藏")
$Button13 = GUICtrlCreateButton("微软雅黑字体 V6.0 ", 16, 56, 129, 25, 0)
$Button14 = GUICtrlCreateButton("Button14", 152, 56, 129, 25, 0)
$Button16 = GUICtrlCreateButton("Button16", 16, 88, 129, 25, 0)
$Button17 = GUICtrlCreateButton("Button17", 152, 88, 129, 25, 0)
$Button18 = GUICtrlCreateButton("Button18", 16, 120, 129, 25, 0)
$Button19 = GUICtrlCreateButton("Button19", 152, 120, 129, 25, 0)
$TabSheet4 = GUICtrlCreateTabItem("应用软件")
$Button20 = GUICtrlCreateButton("Button20", 16, 56, 129, 25, 0)
$Button21 = GUICtrlCreateButton("Button21", 152, 56, 129, 25, 0)
$Button15 = GUICtrlCreateButton("Button15", 16, 88, 129, 25, 0)
$Button22 = GUICtrlCreateButton("Button22", 152, 88, 129, 25, 0)
$Button23 = GUICtrlCreateButton("Button23", 16, 120, 129, 25, 0)
$Button24 = GUICtrlCreateButton("Button24", 152, 120, 129, 25, 0)
$TabSheet5 = GUICtrlCreateTabItem("说明")
$Label3 = GUICtrlCreateLabel("本工具热咖啡里的冰专用个人工具菜单", 40, 104, 208, 16)
GUICtrlSetFont(-1, 9, 400, 0, "宋体")
$Label4 = GUICtrlCreateLabel("正在进一步学习请高手指教", 64, 144, 148, 17)
GUICtrlCreateTabItem("")
$Label1 = GUICtrlCreateLabel("欢迎使用", 3, 333, 52, 12)
$Label2 = GUICtrlCreateLabel("热咖啡里的冰作品", 192, 332, 100, 12)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
[ 本帖最后由 热咖啡里的冰 于 2008-12-6 09:15 编辑 ] |