fincs/SciTE4AutoHotkey

SciTE4AutoHotkey does not work properly when the executable is on a UNC path

Closed this issue · 6 comments

Version 3.0.06.01 - Based on SciTE 3.5.1
How to reproduce:

I tested a non-installation version locally first, then copied it to my network drive.

  • Put the entire folder on a UNC path.
  • Run SciTE4AHK.
  • Open a local script
  • Click "run" or "debug"

If I click "Run," I get the following error message in the box below:

>"\\xxxxxx.xxx\Files\ISG\1n5aN1aC\Documents\Applications\SciTE\..\AutoHotkey.exe" /ErrorStdOut     "C:\Users\1n5aN1aC\Desktop\script name.ahk"    
The specified path is invalid.
>Exit code: 1    Time: 0.2135

If I click "Debug," then I get a popup that says "The AutoHotkey Executable doesn't exist!"
I found that bit here:

IfNotExist, %AhkExecutable%

Is there a possibility that IfNotExist doesn't work on UNC paths, so it's doing that in error?
Am I supposed to put AutoHotkey.exe anywhere manually? I tried putting it 2 different places where I might expect it to be put, but that made no difference.

joedf commented

Try adding Msgbox AHK PATH: %AhkExecutable% before that line then run it again to see where it is looking for AutoHotkey.exe. ❓

Good point.
I'll try that soon as I get a chance to on Monday.

On Jul 10, 2016, at 9:14 AM, Joe DF notifications@github.com wrote:

Try adding Msgbox AHK PATH: %AhkExecutable% before that line then run it again to see where it is looking for AutoHotkey.exe. ❓


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

You may want to mention in the issue description that UNC stands for Universal Naming Convention.

You can get this error message:

"\xxxxxx.xxx\Files\ISG\1n5aN1aC\Documents\Applications\SciTE..\AutoHotkey.exe" /ErrorStdOut "C:\Users\1n5aN1aC\Desktop\script name.ahk"
The specified path is invalid.
Exit code: 1 Time: 0.2135

if you do not have AutoHotkey.exe in the proper folder. Any or all of the Autohotkey executables (AutoHotkey.exe, AutoHotkeyA32.exe, AutoHotkeyU32.exe, & AutoHotkeyU64.exe) plus AutoHotkey.chm need to be in the directory above the one with SciTE.exe. An easy way to accomplish this is to drop the portable SciTE's folder in the AutoHotkey folder. Otherwise, you will have to drop copies of the AutoHotkey executable(s) and AutoHotkey.chm in the folder above your SciTE folder.

Sorry, but although I never got this problem solved, I am no longer in a situation where I run into this problem, as I no longer use it on that computer / that network setup.

Thus I can no longer test this issue, so I guess I'll close it.

You can get this error message:

"\xxxxxx.xxx\Files\ISG\1n5aN1aC\Documents\Applications\SciTE..\AutoHotkey.exe" /ErrorStdOut "C:\Users\1n5aN1aC\Desktop\script name.ahk"
The specified path is invalid.
Exit code: 1 Time: 0.2135

if you do not have AutoHotkey.exe in the proper folder. Any or all of the Autohotkey executables (AutoHotkey.exe, AutoHotkeyA32.exe, AutoHotkeyU32.exe, & AutoHotkeyU64.exe) plus AutoHotkey.chm need to be in the directory above the one with SciTE.exe. An easy way to accomplish this is to drop the portable SciTE's folder in the AutoHotkey folder. Otherwise, you will have to drop copies of the AutoHotkey executable(s) and AutoHotkey.chm in the folder above your SciTE folder.

I created an account just to say that this solved the issue for me. Thanks!

Not sure what caused it in the first place. One day I just opened up SciTE and it wouldn't run my code.
Dropping the AutoHotKey.chm and exe to the folder above the portable install worked a treat (our IT department doesn't let us install to Program Files without permission).