level 1
梦幻今生123
楼主
#include <GUIConstantsEx.au3>
Example()
Func Example()
; Create a GUI with various controls.
Local $hGUI = GUICreate("模拟收费", 300, 150)
; Create a button control.
Local $start1 = GUICtrlCreateButton("开始测试", 30, 70, 100, 50)
Local $end1 = GUICtrlCreateButton("结束测试",170, 70, 100, 50)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $end1,$GUI_EVENT_CLOSE
ExitLoop
Case $start1
; Run Notepad with the window maximized.
test1()
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete()
EndFunc ;==>Example
func test1()
WinActivate("111")
WinSetState("11", "",@SW_MAXIMIZE)
local $yy=1
do
if WinExists("模糊匹配")then
WinActivate("模糊匹配")
ControlSetText("模糊匹配", "", "[Name:tbPlate]","123")
MouseClick("left",524, 711, 1)
send("{ENTER 1}")
Else
send("{ENTER 1}")
endif
sleep(3000)
until $yy =0
endfunc
2017年11月07日 03点11分
1
Example()
Func Example()
; Create a GUI with various controls.
Local $hGUI = GUICreate("模拟收费", 300, 150)
; Create a button control.
Local $start1 = GUICtrlCreateButton("开始测试", 30, 70, 100, 50)
Local $end1 = GUICtrlCreateButton("结束测试",170, 70, 100, 50)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $end1,$GUI_EVENT_CLOSE
ExitLoop
Case $start1
; Run Notepad with the window maximized.
test1()
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete()
EndFunc ;==>Example
func test1()
WinActivate("111")
WinSetState("11", "",@SW_MAXIMIZE)
local $yy=1
do
if WinExists("模糊匹配")then
WinActivate("模糊匹配")
ControlSetText("模糊匹配", "", "[Name:tbPlate]","123")
MouseClick("left",524, 711, 1)
send("{ENTER 1}")
Else
send("{ENTER 1}")
endif
sleep(3000)
until $yy =0
endfunc