|
点击按钮触发一下代码事件
$var = IniRead("execution.ini", "QQ", "QQ", "")
Run($var)
不知道该怎么写进去
这是窗体代码
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$var1=IniRead("execution.ini","Form","width","")
$var2=IniRead("execution.ini","Form","height","")
$Form1 = GUICreate("Menu", $var1, $var2, -1,-1)
$Form1context = GUICtrlCreateContextMenu()
$MenuItem2 = GUICtrlCreateMenuItem("Add", $Form1context)
$MenuItem1 = GUICtrlCreateMenuItem("Exit", $Form1context)
$Button1 = GUICtrlCreateButton("Button1", 24, 32, 57, 57, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 88, 32, 57, 57, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Button3", 152, 32, 57, 57, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Button4", 24, 96, 57, 57, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Button5", 152, 96, 57, 57, $WS_GROUP)
$Button6 = GUICtrlCreateButton("Button6", 88, 96, 57, 57, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd |
|