找回密码
 加入
搜索
查看: 1773|回复: 0

[GUI管理] 新人求助/........老大 帮帮忙啊

[复制链接]
发表于 2008-11-15 16:02:23 | 显示全部楼层 |阅读模式
怎么 让鼠标在窗口的执行,,,
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




这个脚本怎么 改为 窗口 或者后台啊................
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-8 14:57 , Processed in 0.071263 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表