只有用GUI#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1_1 = GUICreate("", 535, 46, -1, -1,$WS_POPUP)
$Label1 = GUICtrlCreateLabel("用户编号(M)", 20, 15, 70, 17)
$Input1 = GUICtrlCreateInput("", 90, 12, 121, 21)
$Label2 = GUICtrlCreateLabel("登陆口令(P)", 220, 15, 70, 17)
$Input2 = GUICtrlCreateInput("", 290, 12, 121, 21)
$n1=GUICtrlCreateIcon("shell32.dll",15,435, 10, 25, 25)
$n2=GUICtrlCreateIcon("shell32.dll",28,485, 10, 25, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $n2
exit
EndSwitch
WEnd
|