AHK ControlClick 为啥出错?

AHK ControlClick 为啥出错?

https://www.autohotkey.com/docs/v2/lib/ControlClick.htm#Reliability

Run "C:\\new_tdx\\TdxW.exe"
if WinWait("通达信金融终端V7.48", , 6){    
   ; WinMinimize ; Use the window found by WinWait.
    ;MsgBox "WinWait not timed out."
    ControlChooseIndex(2,"SysTabControl321")
    Sleep 500
    SetControlDelay -1
    ControlClick "Button1", "通达信金融终端V7.48",,,, "NA"

    Sleep 2500
    
    If WinExist("通达信信息") 
    {
     WinClose ;
          
    }    
    
}
else{
    MsgBox "WinWait timed out."
}

您可以将NA指定为第六个参数,以等待鼠标按钮抬起。 我发现,在Control, Check, ,Button1之前触发ControlClick时,单击不起作用,但是在末尾添加了NA,以某种方式神奇地修复了它。我猜想点击是模拟的,但尚未提升。

Controlclick x160 y60,A,Left,1, NA
像这样的手动选项应该起作用,至少在我看来它是起作用的。

Left = your mouse button pressed
1 = number of clicks
A = Active Window

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值