f9::
{
A_Clipboard :=””
Send “{f4}”
Sleep 300
CoordMode “Mouse”, “Screen”
SendEvent “{Click 333, 220, Down}{Click 1260, 510, Up}”
ClipWait
WinSetAlwaysOnTop 1, “ahk_class Chrome_WidgetWin_1”
Sleep 200
WinActivate “ahk_class Chrome_WidgetWin_1”
Send “^v”
SendEvent “{click 823, 592, 0}”
WinSetAlwaysOnTop 0, “ahk_class Chrome_WidgetWin_1”
}
代码如上,其中 SendEvent “{Click 333, 220, Down}{Click 1260, 510, Up}” 这一行代码有时会出现鼠标指针不在指定坐标拖动,不知道什么原因。