I'll need some more information to help you. What OS/Emulator and architecture are you running Dwarf Fortress on? Could you post the key, menu, and config files that you're using? Have you tried running mouse fortress as an administrator?
Win7, 64 bit - and I haven't yet changed the files you mention, they are exact copies of the ones from your download page (1.4d). But I tried running everything as an administrator, and now the connection to DFHack works! Why this helps is beyond me, all DF programs and utilities, including mouse fortress, are located in a folder on my desktop, (except ahk, which I cannot find anywhere on my disk (probably not an exe (?!?)). Anyway, problem solved, thanks a lot
I had the exact same problem, although i refused to believe it was related to being run as an Administrator or not ( especially since my user is an administrator and i have UAC disabled >.> ).
None the less, i ended up trying it in a desperate hope of getting it to work with DFHack, and thats when i realized what the problem was.
Before, when you didn't run it as an Administrator, i'm sure you opened Dwarf Fortress through a launcher, like the Lazy Newb Pack or the Masterwork config.
When launched through either of those, the window title of the DFHack window is empty, and Mouse Fortress sends the command to the first Window it finds with "Dwarf Fortress.exe" in the title.
Running Dwarf Fortress manually, which would be necessary for you to run it as an Administrator, the DFHack window will have its Path as the title
Other than that, Great work with this tool, its superb :3
Only thing that annoys me is that it is not really useable in fullscreen, as it minimizes the game when it have to show the Rightclick menu.
Although, that is very unlikely to be something that can be fixed :/