Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .