Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I get the filename and path of file opened in Notepad using AutoHotKey?

share|improve this question
2  
What are you trying to accomplish with this? –  Indrek Sep 4 '12 at 1:34
    
I've got a script that can give you the path for a folder open in Windows Explorer. Would that help at all? –  SaintWacko Sep 4 '12 at 16:21
    
That would definitely help. –  Ishan Jan 19 '13 at 3:14

1 Answer 1

This is what I use to run the file currently open in Notepad++ using Shift+Enter

#IfWinActive Notepad++
+Enter::
    Send ^s
    WinGetTitle, Title, A
    StringReplace, Title, Title,  - Notepad++, , All
    Run %Title%
    ;Notify("File Executed",Title,-2,"GC=555555 TC=White MC=White")
    Return
#IfWinActive
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.