[英]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.