Languages: English, 简体中文
Some scripts for Directory Opus (中文介绍).
-
AutoExtract
Extract selected archive to subfolder if there's more than one file under the root path, otherwise (only one file) extract it directly. -

通过 Everything 在当前文件夹下搜索文件。在首次使用时需要先点击“设置 Everything 路径”进行初始化。默认热键 Ctrl+E。
-
作者:雨浪飘零
-
作者:雨浪飘零
-
CloseTabOrLister
If there's only one tab, close the lister, otherwise close current tab. (This script is for reference only. A better way to implement it is to turn on "Lister closes when last tab closes" underPreferences/Folder Tabs/Options.)
-
GetColumnValue
Get the value of the specified column toglob:$result.For example:
// The syntax is the same as the "New name" in the Advanced Rename dialog GetColumnValue "* {md5sum}" Clipboard SET {$glob:$result} @set glob:$result
Corresponding result:
.gitignore 3b121da4db64aa59864e9ed46fa68d0a LICENSE.txt dda85d3253cbd75fd74cceb14c1d8b02 -
Output
Output text to script log.e.g.
Output "sourcepath: {sourcepath}" -
ReplacePath
Replace the current path.Switch between the same folders under C drive and D drive:
@ifpath:C:\* ReplacePath C:\ TO D:\ @ifpath:D:\* ReplacePath D:\ TO C:\
Switch between
Program FilesandProgram Files (x86):@ifpath:*\Program Files(\*|) ReplacePath "\Program Files" TO "\Program Files (x86)" @ifpath:*\Program Files '(x86')(\*|) ReplacePath "\Program Files (x86)" TO "\Program Files"
-
Sleep
Sleep for the specified milliseconds.e.g.
Sleep 3000 -
Speak
Text to speech.e.g.
Speak "My Moon My Man"
-
DialogJump
When in the editor of the file dialog, press Ctrl+G to jump to the last activated folder of listers. If Ctrl+G does not work, type "//cur " to trigger it. (Download the executable file from Releases if you do not have AutoHotkey v2) -
EventWatchers
Output script event information when the event is triggered. -
ObjectViewers
Output script object information. -
Automatically adjust the thumbnail ratio according to the images in the folder or the selected images.
Before After 

You can set the thumbnail to specified size by running a command like
SmartThumbnailSize SIZE=256.You can also import the toolbar:
-
Colorize the folder tab with the color of its label.
Before After 

-
SizeColByEverything
Add a size column which retrieves sizes of files and folders from Everything. (This script is for reference only. Use IbDOpusExt's Size column instead.)
-
PercentDecode
Decode percent-encoding (URL encoding). For example,%E4%BD%A0%E5%A5%BDand%u4F60%u597Dcan be decoded to你好. -
EncodingConvert
Mainly used to fix the character encoding of filenames. For example, you can fix the GBK-encoded嬻偺嫬奅 椉媀幃to Shift-JIS-encoded空の境界 両儀式. -
繁体中文转简体
例如将邊緣行者转换为边缘行者。 -
简体中文转繁体
例如将边缘行者转换为邊緣行者。 -
中文数字转阿拉伯数字-WSQL
例如将一百二十三转换为123。支持大写数字。 -
阿拉伯数字转中文数字-WSQL
例如将123转换为一百二十三。支持大写数字。 -
阿拉伯数字转中文数字-无单位
例如将123转换为一二三。支持大写数字。 -
中英混排加空格
在汉字和英文单词之间添加空格,例如将你好world转换为你好 world。



