Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Autohotkey 对于专家,请在Windows资源管理器中捕获文件的完整路径_Autohotkey_Filepath_Capture_Windows Explorer_File Properties - Fatal编程技术网

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

Autohotkey 对于专家,请在Windows资源管理器中捕获文件的完整路径,autohotkey,filepath,capture,windows-explorer,file-properties,Autohotkey,Filepath,Capture,Windows Explorer,File Properties,因问题不清楚而终止?我有答案了吗? 需要在Windows资源管理器中的文件上单击鼠标左键,您将收到一条包含完整文件路径的消息 例如: 如果我在文件win.ini上单击鼠标 显示MsgBox:c:\windows\win.ini OBS:请告诉我,我需要准备好答案和示例,因为我的英语很糟糕,而且我是编程新手。您可以使用以下内容: ^LButton:: ; Select the file underneath the cursor Click ; Save whatever

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

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

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


OBS:请告诉我,我需要准备好答案和示例,因为我的英语很糟糕,而且我是编程新手。

您可以使用以下内容:

^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
我将它绑定到Ctrl+鼠标左键,因为绑定到鼠标左键会一直触发它


需要注意的是,您已经可以在Windows中执行此操作,只需按住Shift键并右键单击该文件,然后选择“复制为路径”。

您可以使用以下方法:

^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
我将它绑定到Ctrl+鼠标左键,因为绑定到鼠标左键会一直触发它


需要注意的是,您已经可以在Windows中执行此操作,只需按住Shift键并右键单击文件并选择“复制为路径”。

我没有尝试任何操作,因为我没有找到任何命令,所以您应该发布您已经尝试过的操作的代码。我有一个问题,答案由SidolaFOR回答:Andrew Medico,Nikosh,Michael Petch,SilentKiller,greg-449你应该学会阅读。因为比这更清楚是不可能的。西多拉已经回答了这个问题。如果你知道不回答这个问题不应该妨碍。我没有尝试过任何东西,因为我没有找到任何命令,所以你应该发布你已经尝试过的东西的代码。我有这个问题,答案由西多拉福回答:安德鲁·梅迪科、尼科什、迈克尔·佩奇、西伦特基尔、格雷格-449你应该学会阅读。因为比这更清楚是不可能的。西多拉已经回答了这个问题。如果你知道不回答问题不应该阻碍。是的!正是我想要的,你是个天才!我不知道将文件复制到剪贴板也会复制完整路径,这有助于我创建脚本。是的,是的!正是我想要的,你是个天才!我不知道将文件复制到剪贴板也会复制完整路径,这有助于我创建脚本。是啊