AU3窗口代码如下:
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 292, 108, 192, 124)
$Input1 = GUICtrlCreateInput("", 64, 32, 137, 21)
GU ...
king0000 发表于 2009-4-30 17:37 
楼主很懒,仅仅就设计了个可视化窗口~~~#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 292, 108, 192, 124)
$Input1 = GUICtrlCreateInput("", 64, 32, 137, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$Txt=GUICtrlRead($Input1)
If ProcessExists("notepad.exe") Then
If $Txt<>"运行正常" Then
GUICtrlSetData($Input1,"运行正常")
EndIf
Else
If $Txt<>"记事本未运行" Then
GUICtrlSetData($Input1,"记事本未运行")
EndIf
EndIf
WEnd
|