运行环境
版本:AutoHotkey 2.0
系统:Win 10
扩展名:.ahk
编码:UTF-8
脚本代码
坐标需自行更改
#NoTrayIcon
/*不显示图标*/
SetTitleMatchMode 2
SetTitleMatchMode "Fast"
/*标题匹配模式*/
^e::
{
Send "^c"
/*发送ctrl+c*/
CoordMode "Mouse", "Screen"
MouseGetPos &xpos, &ypos
/*获取当前鼠标位置*/
WinActivate "ahk_exe Radmin.exe"
/*激活窗口*/
CoordMode "Mouse", "Client"
MouseMove 425, 20
Send "^{Click 425, 20, Right}"
sleep 100
send "e"
/*设置剪切板*/
CoordMode "Mouse", "Screen"
MouseMove xpos, ypos
/*鼠标位置还原*/
}
^+f::
{
CoordMode "Mouse", "Window"
/*设置定位模式*/
if WinExist("文件传送"){
/*如果已经打开了文件传输窗口就不再打开了*/
WinActivate "文件传送"
/*激活窗口*/
}else{
WinActivate '完全控制'
/*激活窗口*/
Send "^{Click 90, 55, Left}"
/*点击文件传输按钮*/
WinWait "文件传送"
/*等待窗口出现*/
WinMaximize ;
/*最大化*/
Send "^{Click 700, 60, Left}"
Send "{Shift}"
/*点击左侧输入框*/
Send "E:\"
Send "{Enter}"
Send "{Enter}"
Send "^{Click 2000, 60, Left}"
/*点击右侧输入框*/
Send "E:\"
Send "{Enter}"
Send "{Enter}"
}
}