Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea #2

Open
KnIfER opened this issue May 30, 2024 · 2 comments
Open

idea #2

KnIfER opened this issue May 30, 2024 · 2 comments

Comments

@KnIfER
Copy link

KnIfER commented May 30, 2024

用来归档很方便!

(我用ahkv1)

时间戳不如用快捷键做,反正多数人只用一个格式,短短数行即可:

#IfWinActive, ahk_exe 7zG.exe
f1::
	if ti() = "Add to Archive"
	{
		ControlFocus Edit1, A
		ControlGetText, FullFileName, Edit1, A
		SplitPath, FullFileName , , , ext, n
		n := n " - [" A_YYYY "-" A_MM "-" A_DD "]" " - [" A_Hour "" A_Min "" A_Sec "]." ext
		; xx(n)
		Send  %n%
	}
return

完整时间戳可以当id使用。

UI界面,也有价值。可以用于快速选择几个常用压缩目录、文件标签(比如标记重要、不重要)等等。

@KnIfER
Copy link
Author

KnIfER commented May 30, 2024

不对啊,搞错了,归档应该设置的原始目录修改时间,被你带偏了。。

@fffb
Copy link
Owner

fffb commented May 30, 2024

老兄你这想法其实我也有用,而且和 7z 都没啥关系,随便哪个文件都能改名。
其实我本意就不是用原始目录修改时间,就是用压缩包生成时间

#Requires AutoHotkey v2.0
^Numpad0::
{
    A_Clipboard := ""
    SendInput "{F2}"
    SendInput "^c"
    ClipWait , 1
    Send A_YYYY "-" A_MM "-" A_DD " " A_Clipboard
    Send "{Enter}"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants