|
怎么 让鼠标在窗口的执行,,,
HotKeySet("{F3}", "mian")
HotKeySet("{F4}", "terminate") ;alt-q 退出
While 1
Sleep(100)
WEnd
Func terminate()
Exit
EndFunc ;==>terminate
Func mian()
$i = 0
While $i < 1
$coord = PixelSearch( 0, 0, 800, 200, 0x10Ae9c)
If Not @error Then
MouseClick("left", 720, 154, 2)
Sleep(300)
MouseClick("left", 740, 230, 2)
EndIf
$coord = PixelSearch( 0, 0, 125, 39, 0x002c42)
If Not @error Then
Send("{F1}")
EndIf
$coord = PixelSearch( 0, 0, 125, 55, 0x294d63)
If Not @error Then
Send("{F2}")
EndIf
WEnd
EndFunc ;==>mian
这个脚本怎么 改为 窗口 或者后台啊................ |
|