本帖最后由 邪恶海盗 于 2012-8-7 22:06 编辑
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <EditConstants.au3>
#NoTrayIcon;右下角不显示图标
$WinMain = GUICreate("Form", 670, 220) ;创建主窗口
$Input1 = GUICtrlCreateInput("", 102, 59, 55, 22, $ES_CENTER)
$Input2 = GUICtrlCreateInput("", 102, 100, 55, 22, $ES_CENTER)
$Button1 = GUICtrlCreateButton("开始计算", 290, 180, 90, 30, $ES_CENTER) ;横坐标,纵坐标,长,宽
$mw = GUICtrlRead($Input1)
$mc = GUICtrlRead($Input2)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
;DirRemove($Temp, 1)
Exit
Case $Button1
MsgBox(0 + 262144, "", $mw, 3)
EndSwitch
WEnd
大家帮我瞧瞧,如果最后用GUICtrlRead($input1)可以正常显示,用$mw就无法显示了... |