本帖最后由 yyz2191958 于 2023-2-9 11:36 编辑
先在D盘根目录,手工新建一个文件夹:GongJu
ahk代码:
Sleep, 500
;【任务栏右键】(设任务栏在底部)
SysGet, VWidth, 78
SysGet, VHeight, 79
VWidth := Round(VWidth/2)
VHeight := VHeight-10
BlockInput on
ControlClick,X%VWidth% Y%VHeight%, ahk_class Shell_TrayWnd,, R
;【按t键】
Sleep, 100
Send, {t}
;【按n键】
Sleep, 100
Send, {n}
;【输入:D:\GongJu】
Sleep, 200
ControlClick, Edit1, 新工具栏 - 选择文件夹,, L
Sleep, 100
Send, D:\GongJu
;【按回车】
sleep, 100
Send, {ENTER Down}
sleep, 100
Send, {ENTER Up}
;【按TAB】
Send, {TAB Down}
sleep, 100
Send, {TAB Up}
;【按回车】
sleep, 100
Send, {ENTER Down}
sleep, 100
Send, {ENTER Up}
|