对于专家,在Windows资源管理器中捕获文件的完整路径

Vam*_*nha 0 autohotkey windows-explorer capture filepath file-properties

因不清楚问题而终止吗?所以我有答案吗?

需要在Windows资源管理器中单击文件上的鼠标左键,您会收到一条包含完整文件路径的消息。

示例:如果单击文件win.ini上的鼠标,则显示MsgBox:c:\ windows \ win.ini

OBS:拜托,我需要准备好示例答案,因为我的英语太糟糕了,而且我是编程的新手。

Sid*_*Sid 5

您可以使用如下形式:

^LButton::
    ; Select the file underneath the cursor
    Click
    ; Save whatever was in the clipboard
    t := Clipboard
    ; Copy the selected file
    Send, ^c
    ; Store the path
    path := Clipboard
    ; Restore the previous clipboard
    Clipboard := t
    ; Display the path
    msgBox % path
return
Run Code Online (Sandbox Code Playgroud)

我将其绑定到Ctrl +鼠标左键,因为将其绑定到鼠标左键会一直触发它。

需要注意的是,尽管您已经可以在Windows中执行此操作,只需Shift + Right单击该文件并选择“复制为路径”即可。