举报
;号码框相对QQ窗口的坐标位置,密码框的Y坐标只要加30 Local Const $cx=326 Local Const $cy=278 Local $win, $size, $QPath Local $x, $y $QPath=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\PlatForm_Type_List\1","TypePath") ;从注册表中获取QQ程序路径 $wins = "QQ" Run($QPath) WinWait($wins) WinActivate($wins) $size = WinGetPos($wins) Sleep(500) $x=$size[0] + $cx $y=$size[1] + $cy MouseClick("left", $x, $y, 3)
您需要 登录 才可以下载或查看,没有账号?加入
#include <ImageSearchWithoutDLL.au3> Global $x = 0 Global $y = 0 Global $w = 1366;@DesktopWidth Global $h = 768;@DesktopHeight Global $ColorTrans = '' Global $mOnlyFirst = True Global $imagePath = @ScriptDir & "\small.png" $pos = myImageSearch_Desktop($imagePath, $x, $y, $w, $h, $ColorTrans, $mOnlyFirst) If @error Then Sleep(300) Else ;MsgBox(0, $pos[0],$pos[1]) MouseClick("left", $pos[0] + 58, $pos[1], 2) EndIf
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-11-7 04:02 , Processed in 0.068347 second(s), 15 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.