![](/img/trans.png)
[英]Python script to search for a file using partial name in a set of folders and sort them into a new folder structure
[英]I am trying to extract a folder using 7-zip and AutoHotKey, but the script only opens the zipped folder in a new window
右键单击压缩文件夹,按 7(选择 7-zip 子菜单),按三下 e,然后按 Enter 提取文件夹。 我试图自动化这个,但它只是在一个新的 window 中打开压缩文件夹:
#IfWinActive, AHK_EXE Explorer.exe
^e::
blockinput on
SetKeyDelay, 5000
send {RButton}
SetKeyDelay, 5000
send 7
SetKeyDelay, 5000
send e
SetKeyDelay, 5000
send e
SetKeyDelay, 5000
send e
SetKeyDelay, 5000
send {enter}
blockinput Off
return
首先, SetKeyDelay
只需要调用一次。 也许您打算使用Sleep
。
我让它在没有SetKeyDelay
的情况下工作,并且不需要在文件上使用 cursor,因为我使用“菜单”键而不是右键单击。 希望这可以帮助。
BlockInput Send
#IfWinActive, ahk_exe Explorer.exe
^e::
Send {AppsKey}7eee{Enter}
Return
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.