13.19 没有出错,运行还算正常,除了测试按钮按下退出。
改了全局就没什么问题#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Global $els=''
$Form = GUICreate("ces", 232, 456, 1160, 0)
WinSetOnTop($Form,"",1)
$bt_creat = GUICtrlCreateButton("测试", 1, 405, 48, 33)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
;_ReduceMemory(@AutoItPID);释放内存,本函数在循环时多多调用
Case $GUI_EVENT_CLOSE
Exit
Case $bt_creat
ceshi()
EndSwitch
WEnd
Func ceshi()
MsgBox(0,'',$els)
EndFunc
|