CoordMode, Mouse, Screen ;强制相对全屏 $LButton:: ;加$表示不执行自身 加~表示不阻碍原功能 MouseGetPos, x, y ;保存当前坐标 Sleep, 200 ;单击检测延时 GetKeyState, state, lbutton, P ;检测右键是否释放 if state = U { IfWinActive, ahk_class Chrome_WidgetWin_100 ;匹配窗口ahk_class Send, ^{lbutton} Else MouseClick, left, %x%, %y% } Else { MouseClick, left, %x%, %y%, , , D ;拖拽 KeyWait, lbutton ;等待左键释放 MouseClick, left, 0, 0, , , U, R ;抬起左键 } Return
60 queries in 2.560 seconds |